open-developer 的任务调度扩展

v1.0.0 2023-08-13 21:49 UTC

This package is auto-updated.

Last update: 2024-09-14 00:06:59 UTC


README

open-developer 的调度任务管理器

laravel 中管理任务调度的网页界面。

截图

extention-schedualing

安装

composer require open-developer-ext/scheduling
php artisan developer:import scheduling

打开 http://your-host/developer/scheduling

app/Console/Kernel.php 中尝试添加如下调度任务:

class Kernel extends ConsoleKernel
{
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('inspire')->everyTenMinutes();

        $schedule->command('route:list')->dailyAt('02:00');
    }
}

你可以在调度面板中找到这些任务。

调试

如果控制台显示错误: sh: : command not found 尝试在你的 .env 文件中添加以下内容: PHP_BINARY=/path/to/your/php/binaray/