[*] MQ фикс повисших заданий
This commit is contained in:
1 parent
ba2ae816e7
commit
d00078afa5
1 file changed
+4
-2
@@ -717,8 +717,10 @@
|
|||||||
);
|
);
|
||||||
if (!empty($runTasks)) {
|
if (!empty($runTasks)) {
|
||||||
foreach ($runTasks as $task) {
|
foreach ($runTasks as $task) {
|
||||||
if (!empty($task['date_updated'])
|
if (
|
||||||
&& (time() - strtotime($task['date_updated'])) > self::STUCK_TIME) {
|
(!empty($task['date_updated']) && (time() - strtotime($task['date_updated'])) > self::STUCK_TIME) // Повисшие надолго
|
||||||
|
|| empty($task['date_updated']) // Криво запущенные
|
||||||
|
) {
|
||||||
$arStuckTasks[] = (int)$task['id'];
|
$arStuckTasks[] = (int)$task['id'];
|
||||||
if (USE_LOG) {
|
if (USE_LOG) {
|
||||||
Log::logToFile(
|
Log::logToFile(
|
||||||
|
|||||||
Reference in new issue
Block a user