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
Click to show internal directories.
Click to hide internal directories.