gotify / cli

A command line interface for pushing messages to gotify/server.
MIT License
444 stars 58 forks source link

watch without command timeout #44

Open genofire opened 3 years ago

genofire commented 3 years ago

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 commented 4 months ago

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.