From 2a740b43e60702a827911e611a309ad19badd606 Mon Sep 17 00:00:00 2001 From: Boy132 Date: Sat, 29 Jun 2024 23:16:28 +0200 Subject: [PATCH] Fix schedules running every minute (second try) (#444) --- app/Console/Commands/Schedule/ProcessRunnableCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/Schedule/ProcessRunnableCommand.php b/app/Console/Commands/Schedule/ProcessRunnableCommand.php index 0ebda2cdb..d1d71ae02 100644 --- a/app/Console/Commands/Schedule/ProcessRunnableCommand.php +++ b/app/Console/Commands/Schedule/ProcessRunnableCommand.php @@ -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()->toDateTimeString()) + ->where('next_run_at', '<=', Carbon::now()->toDateTimeString()) ->get(); if ($schedules->count() < 1) {