laravel-task-scheduling

v2026.09.24

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

GitHub
安装命令
npx skhub add noartem/laravel-task-scheduling
Markdown
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
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

未指定

源路径

skills/laravel-task-scheduling

默认分支

main

最新提交

0002f35

Tree SHA

3db1f86