Friday, 5 August 2016

run a schedule/timer job on heroku. (worker)

First if you want to run a schedule job to do something every day/hour, then "worker" is not the one for you.

before i show you how to do the schedule job, i want to show you how to make a worker first. to do that you need add worker into your  procfile, like this:


Once you deploy the code into heroku, then you will see the worker here:




To make a schedule job, you just need do this:











No comments:

Post a comment