Library Settings Get Help
Stacktora
Stacktora / Vault / Go + Postgres + Redis: Distributed Cron / Scheduled Task Runner
Background Jobs by @ops

Go + Postgres + Redis: Distributed Cron / Scheduled Task Runner

Scheduled tasks that run exactly once across multiple app instances — Redis-backed leader election so a scaled-out deployment doesn't run the same cron job N times. Distinct from Job Queue & Scheduler: that's a general queue, this specifically solves multi-instance double-execution.

Loads this recipe straight into the wizard — every setting stays editable before you generate anything.

The stack

Go 1.26 PostgreSQLRedis

Install

# pulls this exact recipe straight from the Vault
$ npx stacktora install go-distributed-cron-runner --remote
$ stacktora sync   # generate the files

What you get

docker-compose.ymlMakefileDockerfileREADME.md.env.example.gitignore.dockerignore.github/workflows/ci.yml.tool-versions.editorconfigProcfile … and more

More from the Vault