An alternative to deferred work for a simple cron task on a hero?

In my Rails application on Heroku, I want to execute a simple block of code in 5 specific cases in the future (every day for one day), up to the second.

Is there a good way to do this without a background process?

I do not want to use the Delayed Job, because this will require a copy of Worker, which costs ~ $ 30 per month. Seems unnecessary.

Is there a good way to do this without a Delayed Job / Heroku Worker?

Decided

Thanks for your answers - there seems to be no reliable way to accomplish this. Transition with a delay in work.

+3
source share
5 answers

use the rake command and the scheduler to the hero instead

https://devcenter.heroku.com/articles/scheduler

, .

+1

Rake Heroku, : sleep until job_is_available if job_is_available_in_less_than_twelve_minutes?

, , , . - 1-3 , Heroku - .

+1

, / .., , - ( ), / , , . , .

+1
source

Take a look. This seems like a question. Question with answers

+1
source

Old question, but ...

Perhaps he can solve your problems: Sucker Punch .

You don't need an extra dino on Heroku. And you can specify the time between 5 blocks.

+1
source