Skip to content

Specify a timeout argument in all wait commands #3017

@remyleone

Description

@remyleone
$ scw instance server wait --help
Wait for server to reach a stable state. This is similar to using --wait flag on other action commands, but without requiring a new action on the server.

USAGE:
  scw instance server wait <server-id ...> [arg=value ...]

EXAMPLES:
  Wait for a server to reach a stable state
    scw instance server wait 11111111-1111-1111-1111-111111111111

ARGS:
  server-id         ID of the server affected by the action.
  [zone=fr-par-1]   Zone to target. If none is passed will use default zone from the config

FLAGS:
  -h, --help   help for wait

GLOBAL FLAGS:
  -c, --config string    The path to the config file
  -D, --debug            Enable debug mode
  -o, --output string    Output format: json or human, see 'scw help output' for more info (default "human")
  -p, --profile string   The config profile to use

there is no mention here of a timeout. It could be helpful to wait only for a limited amount of time and return an error in case a resource does not converge to a stable state

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions