[*] MQ навел небольшую красоту

This commit is contained in:
rsgrinko committed 2022-07-09 23:13:03 +03:00
1 parent 3c4809b434
commit 50e7841a1b
1 file changed
+1 -2
+1 -2
View File
@@ -772,8 +772,7 @@
); );
if (!empty($runTasks)) { if (!empty($runTasks)) {
foreach ($runTasks as $task) { foreach ($runTasks as $task) {
if ( if ((!empty($task['date_updated']) && (time() - strtotime($task['date_updated'])) > self::STUCK_TIME) // Повисшие надолго
(!empty($task['date_updated']) && (time() - strtotime($task['date_updated'])) > self::STUCK_TIME) // Повисшие надолго
|| empty($task['date_updated']) // Криво запущенные || empty($task['date_updated']) // Криво запущенные
) { ) {
$arStuckTasks[] = (int)$task['id']; $arStuckTasks[] = (int)$task['id'];