From d00078afa552b9bd3054c91e2d5aac3e33227828 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Fri, 8 Jul 2022 19:19:55 +0300 Subject: [PATCH] =?UTF-8?q?[*]=20MQ=20=D1=84=D0=B8=D0=BA=D1=81=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D1=81=D1=88=D0=B8=D1=85=20=D0=B7=D0=B0=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Core/Models/MQ.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/lib/Core/Models/MQ.class.php b/core/lib/Core/Models/MQ.class.php index 1206916..5c1094a 100644 --- a/core/lib/Core/Models/MQ.class.php +++ b/core/lib/Core/Models/MQ.class.php @@ -717,8 +717,10 @@ ); if (!empty($runTasks)) { foreach ($runTasks as $task) { - if (!empty($task['date_updated']) - && (time() - strtotime($task['date_updated'])) > self::STUCK_TIME) { + if ( + (!empty($task['date_updated']) && (time() - strtotime($task['date_updated'])) > self::STUCK_TIME) // Повисшие надолго + || empty($task['date_updated']) // Криво запущенные + ) { $arStuckTasks[] = (int)$task['id']; if (USE_LOG) { Log::logToFile(