flask-crontab icon indicating copy to clipboard operation
flask-crontab copied to clipboard

Cronjob is unusable without flask cli

Open taryodor opened this issue 1 year ago • 1 comments

It would be really helpful if I can register cronjobs without the need to execute flask cronjob add.

This step prevents me from easily incorporating your seemingly easy to use package to my project :-(

May I ask you why did you add this step? Why isn't decorating function with cron decorator and then initializing the crontab with current app enough? It would be sooo much easier to use this way.

taryodor avatar Apr 26 '24 09:04 taryodor

the jobs are actually run by cron and it has no knowledge about the flask app.

you need a registration step anyway. so what do you mean by the word "initialize"?

frostming avatar Apr 26 '24 14:04 frostming