Check properly for stats notification entity

[MAILPOET-2855]
This commit is contained in:
Pavel Dohnal
2020-04-15 08:21:57 +02:00
committed by Veljko V
parent 5ac98cca3d
commit 4dd2517bae

View File

@@ -101,10 +101,9 @@ class Worker {
} }
} finally { } finally {
$task = $statsNotificationEntity->getTask(); $task = $statsNotificationEntity->getTask();
if ($task instanceof ScheduledTask) { if ($task instanceof ScheduledTaskEntity) {
$this->markTaskAsFinished($task); $this->markTaskAsFinished($task);
} }
} }
$this->cronHelper->enforceExecutionLimit($timer); $this->cronHelper->enforceExecutionLimit($timer);
} }