Erik
Erik

Reputation: 981

Running a job on Heroku, continuously

I'm creating a Twitter app in Rails which I'm hosting on Heroku.

For my app I have a background job that needs to continuously search Twitter.

Unfortunately it seems like Cron jobs can only run at max once per hour, but this wont do for my app I'm afraid. Does anyone have a solution to this problem?

Even better would be if I could use the TweetStream gem and have a connection open to Twitter all the time. But I'm suspecting there may be even greater difficulties with this. Am I wrong?

Thanks!

Upvotes: 2

Views: 793

Answers (1)

Nicolas Blanco
Nicolas Blanco

Reputation: 11299

Heroku supports DelayedJob to run background processes...

And for the fee: "Workers are charged at the same rate as Dynos: $0.05 per hour, prorated to the second. Unlike Dynos, Workers are starting with the first worker. For example, an application with 3 workers for 3 hours will be charged $0.15 for each hour the workers are running."

http://docs.heroku.com/delayed-job

Upvotes: 2

Related Questions