Metronome is a Craft CMS plugin that brings Laravel-style task scheduling to Craft. One crontab entry fires every minute; everything else lives in a fluent PHP schedule you keep in version control with the rest of your project.
Features
- Fluent PHP schedules. Define when everything runs in one readable file:
->dailyAt('03:00')->weekdays()->withoutOverlapping(). - Every kind of task. Schedule Craft console commands, raw shell commands, PHP closures, and queue jobs — all with the same builder.
- Overlap prevention and single-server locks.
withoutOverlapping()skips a run while the last one is still going;onOneServer()makes sure a task fires once across a load-balanced fleet. Both use Craft's cache, no files on disk. - Environment gating.
->environments('production')keeps a task off staging and local without a singleifblock. - Before/after events. Hook
EVENT_BEFORE_TASKandEVENT_AFTER_TASKfor integrations like Sentry Crons check-ins — you get the task, its duration, and its success or error. - Control panel utility. A read-only Utilities screen shows every task, its human-readable schedule, and its next and last run.
- Console commands.
metronome/runexecutes what's due,metronome/listshows the whole schedule, andmetronome/clear-locksfrees a wedged lock.
Documentation
Visit the repository README for all documentation on usage and configuration.
Installation Instructions
To install this plugin, copy the command above to your terminal.
Reviews
This plugin doesn't have any reviews.
Active Installs
0
License
MIT
Last release
July 21, 2026