Re:Background Jobs with DJ on Heroku
by sunkencity on Friday March 19, 2010 @04:46PM
(#1205225)
heroku's awesome but the lack of minute or five minute cron is dealbreaker for me, thus i need my own servers to be able to schedule mailings
[ Parent
| on HN ]
Re:Background Jobs with DJ on Heroku
by jamesheroku on Friday March 19, 2010 @04:58PM
(#1205258)
For sub-hour scheduled or recurring tasks, most users prefer a scheduled background task with DJ, rather than old-school cron. There are a bunch of ways to do this, for example:
Delayed::Job.enqueue(work, 0, Time.now + 5.minutes)
Docs: http://docs.heroku.com/delayed-job
Re:Background Jobs with DJ on Heroku
by sunkencity on Saturday March 20, 2010 @04:28AM
(#1206189)
Great! I posted that hoping that there would be a solution. I've looked around delauyed job trying to find some scheduling funciton but I didn't look close enough it seems. Thanx!