schedule-monitor:list

php artisan schedule-monitor:list shows the state of your schedule: which tasks are monitored and when they last started, finished, and failed, which tasks still need a sync, and which tasks cannot be monitored. This page explains every section of the output and how each value is computed.

Property Value
Signature schedule-monitor:list
Description Display monitored scheduled tasks
Options none
Reads The schedule of the current environment and the monitored_scheduled_tasks table
Writes Nothing

Usage

php artisan schedule-monitor:list

The command is read-only and safe to run in production at any time.

Output Sections

The output, rendered with Termwind, has up to four sections. Only Monitored Tasks is always shown; the others appear when they have content.

Monitored Tasks

Tasks that are in the schedule and have a row in the database. For each task:

Field Source Highlight
Name and type The task name and its type (command, job, closure, shell)
Frequency The cron expression translated to text, such as "Every hour". If the expression cannot be translated, the raw expression is shown.
Started at last_started_at
Finished at last_finished_at Red when the task is late
Failed at last_failed_at Red when the last run failed
Next run Computed from the cron expression in the task's timezone, shown in the application timezone (app.timezone)
Grace time graceTimeInMinutes() or the configured default

Missing times are shown as --. Dates are formatted with the date_format config value (default Y-m-d H:i:s).

An illustrative example of one entry:

 Monitored Tasks
 reports:send (command) ........................... At 02:00
   ⇁ Started at: 2026-12-03 02:00:00   ⇁ Finished at: 2026-12-03 02:03:41
   ⇁ Failed at: --   ⇁ Next run: 2026-12-04 02:00:00   ⇁ Grace time: 20 minutes

When no task is monitored, the section contains "There currently are no tasks being monitored!".

Note: The values in the database columns are the times recorded by the package (now() when the event was handled). The "Next run" is computed from the schedule definition, not from the database, so it reflects your current code even before a sync.

Run sync to start monitoring

Tasks that are in the schedule and have a name, but no row in the database yet, for example a task added since the last deployment:

 Run sync to start monitoring
 These tasks will be monitored after running: php artisan schedule-monitor:sync
 reports:cleanup (command) ...................... Every day

Their runs are not being recorded. Run schedule-monitor:sync.

Unnamed Tasks

Tasks for which no name could be determined, typically closures. They cannot be monitored until you add monitorName(). Unnamed tasks are shown by type only:

 Unnamed Tasks
 These tasks cannot be monitored because no name could be determined for them.
 closure .............................................. Every day
 To monitor these tasks you should add ->monitorName() in the schedule to manually specify a name.

Duplicate Tasks

Tasks whose name is already used by an earlier task in the schedule. Only the first is synced; see Duplicate Names for why you should fix these.

Which Tasks Are Considered

  • Only tasks that run in the current environment (app.env) are listed.
  • Tasks marked doNotMonitor() are left out of all sections except Unnamed Tasks.
  • Rows in the database that no longer correspond to a task in the schedule (for example left behind by sync --keep-old) are not listed. The list starts from the schedule, not from the table.

The Oh Dear Column

Older versions of the README show a "Registered at Oh Dear" column and a hint about unregistered tasks in this output. The view still contains them, but in the current source the command decides whether Oh Dear is used with class_exists(OhDear::class) without importing the class, so PHP looks for a class named Spatie\ScheduleMonitor\Commands\OhDear, which does not exist. As a result the Oh Dear column is never shown in version 4.x, even when Oh Dear is fully configured.

To check which tasks are registered at Oh Dear, look at the registered_on_oh_dear_at and ping_url columns instead:

php artisan tinker --execute="dump(Spatie\ScheduleMonitor\Models\MonitoredScheduledTask::pluck('ping_url', 'name')->all())"

or open the monitor's cron checks in the Oh Dear dashboard.

Customizing the Output

The output is made of Blade views rendered by Termwind under the schedule-monitor view namespace (schedule-monitor::list and components such as schedule-monitor::components.task). You can override them by placing files with the same names in resources/views/vendor/schedule-monitor/. The package registers its views through spatie/laravel-package-tools, which by that package's convention offers them for publishing under a schedule-monitor-views tag.

See Also