Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special exit code for --await CLI commands #2380

Closed
roman-khimov opened this issue Jun 13, 2023 · 0 comments
Closed

Special exit code for --await CLI commands #2380

roman-khimov opened this issue Jun 13, 2023 · 0 comments
Assignees
Labels
enhancement Improving existing functionality neofs-cli NeoFS CLI application issues
Milestone

Comments

@roman-khimov
Copy link
Member

Is your feature request related to a problem? Please describe.

I'm always frustrated when some command timeouts and I get some generic exit code returned. It can timeout before receiving "OK" for its request and it can timeout after that while waiting for the intended side effect (--await). Those are quite different situations.

Describe the solution you'd like

A special exit code returned in case the action was requested, but --await loop ended up with timeout.

Additional context

Related to #2135 and #2376.

@roman-khimov roman-khimov added enhancement Improving existing functionality neofs-cli NeoFS CLI application issues labels Jun 13, 2023
@roman-khimov roman-khimov added this to the v0.38.0 milestone Jun 13, 2023
AliceInHunterland added a commit that referenced this issue Aug 14, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 14, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 14, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 14, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 14, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 14, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 15, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 16, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 16, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 16, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 17, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 17, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 17, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 17, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 17, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 17, 2023
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 17, 2023
The only command that can create alphabet wallets is init.
The only commands that can create contract wallet are init and update-contracts.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
AliceInHunterland added a commit that referenced this issue Aug 17, 2023
The only command that can create alphabet wallets is init.
The only commands that can create contract wallet are init and update-contracts.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
roman-khimov added a commit that referenced this issue Aug 18, 2023
A new error code is added for awaiting timeout expiration.
Closes [#2380]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality neofs-cli NeoFS CLI application issues
Projects
None yet
Development

No branches or pull requests

2 participants