forked from nspcc-dev/neofs-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: Increase default execution timeout in async-await commands
Some CLI commands like `container create` are async-await. Previously, default execution timeout was 15s for such commands. Since more than one RPC is needed for theses commands (e.g. creation request and polling), there is a need to increase default timeout in waiting mode. Add `GetCommandContextWithAwait` and use it in `create`, `delete` and `set-eacl` commands of `container` section. Make command to time out after 1m if `--await` flag is set while `--timeout` one is omitted. Closes nspcc-dev#2124. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
- Loading branch information
1 parent
2610ede
commit c3c286f
Showing
5 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters