Issue Task Resolved

#110637Use InvalidTaskException when Scheduler tasks cannot be loaded

Wouter Wolters 09/06/26, 08:31 updated 09/30/26, 21:30

Description

SchedulerTaskRepository catches InvalidTaskException when a task cannot
be deserialized or is otherwise invalid. After disabling the affected task,
the repository currently replaces it with a generic
\UnexpectedValueException.

This hides the existing domain-specific exception and requires callers to
handle a generic PHP exception.

The repository should retain its existing task-disabling behavior but throw
InvalidTaskException. Scheduler CLI and backend consumers should be updated
to handle the specific exception.

Reviews 1

History 14

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-30T21:30:09+00:00" > 09/30/26, 21:30 </span>

    Applied in changeset commit:5cd62509b0385fb3a44e6c6a97b64df2d84513ac.