Get the latest tech news

Replacing cron jobs with a centralized task scheduler


A brief description of our task scheduling system

The consumer reads the payload discriminated union and calls the corresponding function responsible for executing the task. If for some reason the script does not run for some amount of time due to an outage or error, the scheduled tasks will still exist in the database. But I haven’t seen too many people talking about this problem, so hopefully this was helpful for anyone that’s currently stuck maintaining a sea of scattered cron jobs.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of cron jobs

cron jobs

Related news:

News photo

How to run cron jobs in Postgres without extra infrastructure

News photo

A hackable AI assistant using a single SQLite table and a handful of cron jobs

News photo

Cron Jobs on Linux – Comprehensive Guide with Examples