exec-cron

command
v0.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Command exec-cron shows flywheel replacing cron. It registers the generic ExecWorker and declares a shell command to run on an interval — durably, with retries and a full per-run audit trail — without writing any job-specific Go.

The schedule is declared on the Scheduler, so it is applied on every start and re-created if its row is deleted while the program runs: the code, not the database, is the source of truth.

go run ./examples/exec-cron

Inspect the audit trail with the flywheel CLI against the same database:

flywheel jobs ls --db flywheel-cron.db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL