Merge pull request #337 from Boy132/fix/schedules-run-every-minute

Fix schedules running every minute
This commit is contained in:
Charles
2024-06-07 05:43:56 -04:00
committed by GitHub

View File

@@ -24,7 +24,7 @@ class ProcessRunnableCommand extends Command
->whereRelation('server', fn (Builder $builder) => $builder->whereNull('status'))
->where('is_active', true)
->where('is_processing', false)
->whereDate('next_run_at', '<=', Carbon::now()->toDateString())
->whereDate('next_run_at', '<=', Carbon::now()->toDateTimeString())
->get();
if ($schedules->count() < 1) {