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

Support timeout option for the deploy command #693

Open
aurrelhebert opened this issue Feb 22, 2024 · 0 comments
Open

Support timeout option for the deploy command #693

aurrelhebert opened this issue Feb 22, 2024 · 0 comments
Assignees
Labels
command:deploy Tasks related to the deploy command complexity:quick-win Tasks that can be easily implemented priority:low Tasks with a low priority

Comments

@aurrelhebert
Copy link
Member

Support a timeout option for the deployed command as discussed in #309

We should first agreed on a duration format that we will support on the CLI (as seen in #609).

Timeout

First, a timeout option will be implemented.

Behavior

This option will add the following behavior:

  • If deploy is OK or FAIL before the timeout set, the CLI answer success or fail
  • If deploy is still in WIP when the timeout ends, the CLI answer fail

Option format

The timeout option will support value as:

  • An integer or a float number value (yet to define)
  • Could have an optional suffix (CLI will support m for minutes or s for seconds), by default the timeout will be in seconds

Example:

clever deploy my_app --timeout 5m
clever restart my_app --timeout 5m

# Timeout of 300 seconds
clever deploy my_app --timeout 300
clever restart my_app --timeout 20s
@aurrelhebert aurrelhebert added priority:low Tasks with a low priority complexity:quick-win Tasks that can be easily implemented command:deploy Tasks related to the deploy command labels Feb 22, 2024
@aurrelhebert aurrelhebert self-assigned this May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command:deploy Tasks related to the deploy command complexity:quick-win Tasks that can be easily implemented priority:low Tasks with a low priority
Projects
None yet
Development

No branches or pull requests

1 participant