Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do Heroku Scheduler tasks cost money?

I've been reading through Heroku's documentation but just found it plain confusing. I have an app up that has both a web-based front-end (with web process) and a task that's set to run every day at midnight by Heroku Scheduler (shows up on heroku ps as run.1).

So, my heroku ps looks like this:

Process  State       Command -------  ----------  ------------------------------------ run.1    up for 21h  python webpage/listings.py web.1    up for 8m   python ./manage.py runserver 0.0.0.. 

What I'm trying to figure out is, is this considered two dynos? Is the run task considered a background task?

Main question: Will this cost money?

like image 216
jdotjdot Avatar asked Jun 08 '12 22:06

jdotjdot


People also ask

Is Heroku scheduler free?

Scheduler is a free add-on for running jobs on your app at scheduled time intervals, much like cron in a traditional server environment. While Scheduler is a free add-on, it executes scheduled jobs via one-off dynos that will count towards your monthly usage. Scheduler job execution is expected but not guaranteed.

Is Heroku scheduler reliable?

Reliable delivery Heroku Scheduler is a free add-on, but it doesn't guarantee that jobs will be executed at their scheduled time, or at all for that matter. While it is rare, the possibility that a job may be skipped or run twice does exist.

Can you run cron jobs on Heroku?

Cron To Go is an add-on created for Heroku users to run scheduled jobs based on one-off dynos using cron expressions. Cron To Go combines the simplicity of using cron to schedule jobs with the scale and elasticity of the cloud.


2 Answers

Yes, a Heroku Scheduler will accrue usage and will cost money if you go over your 750 free dyno-hours you are given per app each month. As long as you keep within that limit, you won't be charged.

Scheduler runs one-off dynos, which accrue usage just like regular dynos. They will appear with a “scheduler” dyno type in your Heroku invoice.

like image 86
Mitch Dempsey Avatar answered Oct 25 '22 07:10

Mitch Dempsey


There is 750 of free hours.

In the billing, dynos are divided in four groups: worker (background dynos), web dynos, rake and one-off-process (when executing "heroku run", for example used by the scheduler).

More at https://devcenter.heroku.com/articles/usage-and-billing

like image 39
brunoghisi Avatar answered Oct 25 '22 07:10

brunoghisi