Skip to content

Task executions that are terminated by a fatal error may never be executed again. #48

Description

@dev-newvisibility

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions