How to schedule a function to run every hour on Flask?

前端 未结 9 2349
我寻月下人不归
我寻月下人不归 2020-11-28 01:10

I have a Flask web hosting with no access to cron command.

How can I execute some Python function every hour?

9条回答
  •  情书的邮戳
    2020-11-28 01:38

    You might want to use some queue mechanism with scheduler like RQ scheduler or something more heavy like Celery (most probably an overkill).

提交回复
热议问题