Fix rescheduling of outdated tasks [MAILPOET-2385]

This commit is contained in:
wxa
2019-09-30 13:05:06 +03:00
committed by Jack Kitterhing
parent 12c526e120
commit 26041d61a7

View File

@ -102,10 +102,10 @@ abstract class SimpleWorker {
CronHelper::enforceExecutionLimit($this->timer);
if (!static::SUPPORT_MULTIPLE_INSTANCES) {
if ($this->isInProgress($task)) {
if ($this->rescheduleOutdated($task)) {
return false;
}
if ($this->rescheduleOutdated($task)) {
if ($this->isInProgress($task)) {
return false;
}
$this->startProgress($task);