Why is my grace time resetting to 5 minutes?

If you're using the spatie/laravel-schedule-monitor package to sync your Laravel schedule to Oh Dear, the grace time you set in the Oh Dear dashboard gets overwritten every time the package syncs. That's by design: the package treats your Laravel schedule definition as the single source of truth.

To change the grace time permanently, set it in your schedule definition using graceTimeInMinutes():

// routes/console.php (Laravel 11+)

use Illuminate\Support\Facades\Schedule;

Schedule::command('your-command')
    ->daily()
    ->graceTimeInMinutes(10);
// app/Console/Kernel.php (Laravel 10 and earlier)

protected function schedule(Schedule $schedule): void
{
    $schedule->command('your-command')
        ->daily()
        ->graceTimeInMinutes(10);
}

Next time schedule-monitor:sync runs, the 10-minute grace time will be pushed to Oh Dear and stick.

If you're not using the schedule monitor package, any value you set in the Oh Dear dashboard stays put.

Related Questions

View all Cron Job Monitoring questions →

Want to get started? We offer a no-strings-attached 10 day trial. No credit card required.

Start monitoring

You're all set in
less than a minute!