# Laravel Task Scheduling

> Schedule tasks with safety; use withoutOverlapping, onOneServer, and visibility settings for reliable cron execution

- Skill: `noartem/laravel-task-scheduling` (Agent Skill)
- Install (CLI): `npx skillmds@latest add noartem/laravel-task-scheduling`
- Raw SKILL.md: https://api.skillmd.com/api/skills/noartem/laravel-task-scheduling/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: noartem (https://skillmd.com/u/noartem)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/noartem/laravel-task-scheduling

---


# 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

