codestudiohq / laravel-totem

Manage Your Laravel Schedule From A Web Dashboard
MIT License
1.79k stars 224 forks source link

Cannot be executed automatically #292

Closed shijie1991 closed 3 years ago

shijie1991 commented 3 years ago

Laravel 8.51.0 totem v8.1.4

image

image

image

image

kanhaiyam commented 3 years ago

Could you please elaborate what the issue is?

shijie1991 commented 3 years ago

Laravel 8.51.0 totem v8.1.4

  1. 设置定时任务 并将输出打印到文件 image 2.查看输出的 corn 日志(已执行) image 3.test 文件 将 记录日志到 laravel.log image 4.并没有执行 Log::debug (未执行) image
shijie1991 commented 3 years ago

I use Alibaba Cloud as file storage

$event->cron($task->getCronExpression()) ->name($task->description) ->timezone($task->timezone) ->before(function () use ($task, $event) { $event->start = microtime(true); Executing::dispatch($task); }) ->after(function () use ($event, $task) { Executed::dispatch($task, $event->start ?? microtime(true)); }) ->sendOutputTo(Storage::path($task->getMutexName()));

Unsuccessful here makes it impossible to execute

sendOutputTo(Storage::path($task->getMutexName()))