我已经计划了一些命令,它随机停止工作。它们的工作时间约为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()
也会被触发。
我在日志和时间表中没有发现任何问题:运行正常。
这个问题使我发疯。任何想法可能是什么问题?