Running Heroku background tasks with only 1 web dyno and 0 worker dynos

后端 未结 5 1863
不知归路
不知归路 2020-12-14 02:02

I have a Python Flask app on Heroku that serves web pages but also allows certain tasks to be launched which I believe would be best structured as background tasks. As such

5条回答
  •  一个人的身影
    2020-12-14 02:58

    You should take a look at Heroku Scheduler it will allow you to run a specific task on a scheduled interval such as every 10 minutes. If you already have your worker setup you could add:

    heroku run worker
    

提交回复
热议问题