Reputation: 312
I have a task that runs over 24h, and gets restarted by heroku - as it restarts tasks daily:
https://devcenter.heroku.com/articles/dynos#the-dyno-manifold
Leaving the length of the task, and what it is aside - is it possible to leave it so that it runs to completion ? Or would I have to figure out how to save state of the task ?
Upvotes: 2
Views: 186
Reputation: 3697
You will need to figure out how to save the state of your process. Heroku does not provide a way for you to make a dyno run longer then 24 hours.
That aside, it may be in your best interest to delocalize the state anyways, doing so will help you with scalability, help the process be more resilient, and work on heroku. You may be interested in checking out this document for some best practices on heroku
Upvotes: 1