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

watch without command timeout #44

Open
genofire opened this issue Oct 29, 2021 · 1 comment
Open

watch without command timeout #44

genofire opened this issue Oct 29, 2021 · 1 comment

Comments

@genofire
Copy link

sometime it is nice to run a command which is importend to complete, but the next run should not be to wide in the future.

it would be nice, that this command does not cancle on timeout, and the next run should be the interval time after the command complete time.

could we got a flag/option for it? (like --no-timeout)
I like that there is also a timeout option ...

@eternal-flame-AD
Copy link
Member

Rust async library tokio has a flexible scheduling system we can reference: https://docs.rs/tokio/latest/tokio/time/enum.MissedTickBehavior.html

We can reference these three modes for scheduling.

What you described will be MissedTickBehavior::Delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants