Scheduling Rails Tasks on Heroku + localhost
Is there a gem / app / add-on scheduler that works on both Heroku and my local machine? I just need to do a separate task on a daily basis, so I don't think I need anything too complicated.
I looked at the Geroku scheduler, but it looks like nothing like this is comparable locally. Whenever the gem has nothing comparable on Heroku ( "Whenever the gem runs cron jobs on Heroku .) I've also looked at Resque / Resque Scheduler / Redis, but that really seems like overkill for what I want to do.
Am I missing something really basic here?
source to share
rufus-scheduler runs both locally and remotely on Heroku, ... with some limitations:
1) Long Term Job Will Terminate: Scheduled Jobs are designed to run short running tasks or run longer running tasks in the background job queue, such as Delayed Job . Anything that takes longer than a couple of minutes to complete must use a workflow to start (see hero scheduler add-on )
2), you have to be careful about memory consumption. Each process has a 512MB memory limit, after which it starts paging for swap and performance degrades. If all your streams are concatenated, use less than 512MB of memory, then this may work.
source to share