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?
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With