Wednesday, 2 October 2013

Dynamic custom job scheduling with NodeJS on Heroku

Dynamic custom job scheduling with NodeJS on Heroku

I'm running NodeJS on Heroku and I want to dynamically schedule one-off
jobs to run at a specific time, e.g. 5pm on 26 Oct. The jobs will be
scheduled based on an API call. I've read through the Heroku documentation
and it looks like the custom clock process is the way to go versus the
scheduler. I don't need recurrence.
Does anybody have a recommendation on which NodeJS plugins to use? I'm
looking at Node-scheduler but it seems to only do the scheduling and
Heroku is recommending me to enqueue the scheduled process and run worker
dynos to process the jobs. I found BeanStalkd (Fivebeans client) which is
a delayed job queue that also has the ability to set delays and valid
runtime when adding jobs to the queue. This seems to be better suited to
Heroku's model.
Has anybody used these tools or have other suggestions for solid NodeJS
scheduler / queue compatible with Heroku's custom clock process model?

No comments:

Post a Comment