Programatically create cron jobs

Hello guys, i was wondering if i could programmatically create cron jobs based on fetches from the database, here is a code snippet if you’re wondering what the heck i am talking about :

Thank you !

1 Like

While I can’t say I’ve ever seen it done, this would be a very cool concept :thinking:

i wanted to let my users execute repetitive tasks automatically like fetching articles everyday at a certain time , or generate a report automatically every week ect…
ended up creating predefined times of the week and fetching cron jobs for each repetition time x)
but still it doesn’t really do what i wanted ! hope it will be real in the future