Disable a Heroku Scheduler Job Without Deleting It

GuidesOscar van Ruiten

You can add, edit, and delete Heroku Scheduler jobs, but not pause them, and maintenance mode doesn't stop them. Keep your jobs, check a config var at the top of each one, and switch them off and on with a single command.

How to Run a Heroku Scheduler Job Manually

GuidesOscar van Ruiten

Heroku Scheduler has no Run button, and heroku run skips the time to live a scheduled run gets. Start the job with heroku run:detached, then add the same TTL through the Platform API, so your test stops where a scheduled run would.

Heroku Scheduler Timeout: Why Your Job Stops at Its Interval

GuidesOscar van Ruiten

A Heroku Scheduler job that runs past its interval is stopped: Heroku sends the dyno SIGTERM, and on the Common Runtime it exits with status 143. Here is how to confirm that in your logs, and three ways to keep long work running to the end.

Heroku CLI’s heroku run and heroku run:detached commands: A Quick Guide

GuidesOscar van Ruiten

The Heroku CLI contains a lot of powerful CLI commands. Today we will dive into 2 of them: the heroku run and heroku run:detached commands. Both allow you to run a one-off process inside a Heroku one-off dyno right from the terminal, but how are they different and to what use cases does each apply?