Skip to content

Commit 88420db

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

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
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 IS NULL'); //hotfix
79+
->where('existing.executed_at IS NULL');
8080

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

app/code/Magento/Cron/Setup/Recurring.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use Magento\Framework\Setup\SchemaSetupInterface;
1212

1313
/**
14-
* @codeCoverageIgnore
15-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
14+
* Cron recurring setup
1615
*/
1716
class Recurring implements InstallSchemaInterface
1817
{

0 commit comments

Comments
 (0)