Skip to content

Commit 78bf670

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-84646: Cron jobs incorrect behavior when running job terminated
1 parent e23f3ee commit 78bf670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cron/Model/ResourceModel/Schedule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function trySetJobUniqueStatusAtomic($scheduleId, $newStatus, $currentSta
7676
->where('current.schedule_id = ?', $scheduleId)
7777
->where('current.status = ?', $currentStatus)
7878
->where('existing.schedule_id IS NULL')
79-
->where('existing.executed_at > UTC_TIMESTAMP() - INTERVAL 1 DAY'); //hotfix
79+
->where('existing.executed_at IS NULL'); //hotfix
8080

8181
$update = $connection->updateFromSelect($selectIfUnlocked, ['current' => $this->getTable('cron_schedule')]);
8282
$result = $connection->query($update)->rowCount();

0 commit comments

Comments
 (0)