Asmodius / sanic-scheduler

MIT License
9 stars 3 forks source link

Sheduler in app with mutilple workers #1

Open congnghiakhiem opened 5 years ago

congnghiakhiem commented 5 years ago

My app has 3 workers. When I create a task, all of workers run this task at the same time.

chris-allnutt commented 4 years ago

:+1: I figured this would be an issue, I love the decorator syntax but it would be nice to be able to only run one set of tasks. For now I just make sure my takes can be triggered more than once without consequence. @congnghiakhiem you could for the mean time use redis to set an expiration heartbeat and not run if another task has already registered it is running.