1

我已经安排了一些命令,它随机停止工作。它们工作约 10 天并随机停止,如果我重新启动服务器,它们会再次开始工作约 10 天。

protected function schedule(Schedule $schedule) {

   $schedule->command('dump:database')
                ->hourlyAt(0)
                ->environments(['production'])
                ->thenPing("https://example.com/hash");

   $schedule->command('other:command')
          ->daily();

   $schedule->job(new ECheckScheduleChecks())
        ->daily()
        ->environments(['production']);
}

奇怪的是预定的作业一直在运行。

->thenPing()即使命令中的代码没有运行,也会触发。

我在日志中看不到任何问题,并且 schedule:run 工作正常。

这个问题快把我逼疯了。任何想法可能是什么问题?

4

0 回答 0