Heroku and node-cron?

后端 未结 3 1117
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 02:21

So I know Heroku\'s free dynos \'wind down\' when there isn\'t any traffic to them– how would this effect the cron jobs that I\'ve implemented using the node-cron module?

3条回答
  •  春和景丽
    2021-02-02 02:56

    I think you can create a ping system that keeps Heroku running every 10 mins. So if your cron job is scheduled to run every month. It would not go to sleep due to the ping. You may need to verify your credit card to obtain more free units so that you don't run out of hrs for that month

提交回复
热议问题