Skip to content

options: change timeout value format #39

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

Closed
wants to merge 1 commit into from

Conversation

acerv
Copy link
Collaborator

@acerv acerv commented Feb 27, 2025

Change the way we handle timeout format, introducing value + suffix that can be:

  • s: seconds
  • m: minutes
  • h: hours
  • d: days

For example, '30m' means '30 minutes'. If no suffix is given, we threat the input value in seconds.

@acerv acerv requested review from pevik and metan-ucw February 27, 2025 11:08
@acerv acerv self-assigned this Feb 27, 2025
@acerv acerv added the enhancement New feature or request label Feb 27, 2025
@pevik
Copy link
Member

pevik commented Feb 27, 2025

Days timeout sounds crazy, but why not.

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Change the way we handle timeout format, introducing <value> + suffix
that can be:

- s: seconds
- m: minutes
- h: hours
- d: days

For example, '30m' means '30 minutes'. If no suffix is given, we threat
the input value in seconds.

Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
@metan-ucw
Copy link
Member

Looks good, Acked-by: Cyril Hrubis chrubis@suse.cz

@acerv
Copy link
Collaborator Author

acerv commented Feb 27, 2025

Merged

@acerv acerv closed this Feb 27, 2025
@acerv acerv deleted the execution_timer branch April 16, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants