Scheduled Jobs on Heroku?

What is everyone using for scheduled jobs on Heroku? I know Heroku restarts their dynos periodically about once every 24hrs and each dyno does not communicate with the others which causes issues with some of the commonly suggested ways to do this in elixir.

1 Like

the very simple (read hackish!) way for cron type jobs is to use an external scheduler like https://elements.heroku.com/addons/temporize and then have an endpoint that does the job.

a better way would be to use something like EctoJob - that handles the scheduling in your DB.

I’ve been doing the hackish way for years with rails in production - haven’t battle tested EctoJob yet though…

1 Like

I’m very happy using Quantum - has crontab-like scheduling and lives within your app.

1 Like

I set up a mix task and the use the Heroku Scheduler add-on. I just need it to run once a day.

1 Like