tokio-cron-scheduler icon indicating copy to clipboard operation
tokio-cron-scheduler copied to clipboard

Run tasks non-concurrently?

Open Zerowalker opened this issue 1 year ago • 3 comments

Is it possible to make sure a task doesn't run concurrent with itself?

Say a task repeats every 10 seconds, and sometimes it takes 15 seconds to complete so the next one starts while the last one is still running. That I would like to prevent if possible, so instead it has to wait till the last one is done and will then execute at the next tick or something.

Zerowalker avatar Jul 24 '23 10:07 Zerowalker

Ok, so you would like to have some of blocker that keeps a job from running with itself? Interesting.

Thanks for the issue, I'll check what I can do

mvniekerk avatar Jan 29 '24 08:01 mvniekerk

Yeah, it's not a big thing right now personally, but I still find it to be a good feature to look into. Though if i'm the only one that thinks so, it might not be that good a feature anyhow, so take it with a grain of salt;p

Zerowalker avatar Jan 30 '24 14:01 Zerowalker

@mvniekerk Did you find any solution for that?

dancixx avatar Aug 25 '24 14:08 dancixx