plashchynski / crono

A time-based background job scheduler daemon (just like Cron) for Rails
https://github.com/plashchynski/crono
Apache License 2.0
687 stars 56 forks source link

Creating jobs dynamically, at runtime #44

Open DannyBen opened 8 years ago

DannyBen commented 8 years ago

Hi,

Is there any way to create scheduled jobs at runtime, driven by user actions?

For instance - to let users create scheduled, recurring tasks? As I suspect the answer would be no - is it in crono's vision / roadmap to consider such a feature?

josercruz01 commented 8 years ago

+1

plashchynski commented 8 years ago

Hello @DannyBen and @josercruz01 Have you tried to run Crono#perform at runtime within another task? it should schedule a task. Then you could reschedule these tasks every time Rails loads.