skills/noartem/laravel-vue-skills/laravel-task-scheduling

laravel-task-scheduling

SKILL.md

Task Scheduling

Run scheduled tasks predictably across environments.

Commands

// routes/console.php
<?php

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schedule;

Schedule::command('reports:daily')
    ->dailyAt('01:00')
    ->withoutOverlapping()
    ->onOneServer()
    ->runInBackground()
    ->evenInMaintenanceMode();

Patterns

  • Guard long-running commands with withoutOverlapping()
  • Use onOneServer() when running on multiple nodes
  • Emit logs/metrics for visibility; consider notifications on failure
  • Feature-flag risky jobs via config/env
Weekly Installs
14
GitHub Stars
5
First Seen
Jan 25, 2026
Installed on
codex14
gemini-cli12
opencode12
amp11
github-copilot11
cursor11