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 single if block.
  • Before/after events. Hook EVENT_BEFORE_TASK and EVENT_AFTER_TASK for 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/run executes what's due, metronome/list shows the whole schedule, and metronome/clear-locks frees 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
Version
1.0.0
License
MIT
Compatibility
Craft 5
Last release
July 21, 2026