Hi there,
I'm noticing that when a task is terminated during execution due to a PHP fatal error (such as memory exhausted), it retains the 'running' status.
As a result, a recurring task is never scheduled again:
|
if (null !== ($execution = $this->taskExecutionRepository->findPending($task))) { |
For task handlers that implement the LockingTaskHandlerInterface interface, we may use the lock's ttl to exclude expired running task executions.
Hi there,
I'm noticing that when a task is terminated during execution due to a PHP fatal error (such as memory exhausted), it retains the 'running' status.
As a result, a recurring task is never scheduled again:
php-task/src/Task/Scheduler/TaskScheduler.php
Line 101 in 9411dfc
For task handlers that implement the LockingTaskHandlerInterface interface, we may use the lock's ttl to exclude expired running task executions.