#110637Use InvalidTaskException when Scheduler tasks cannot be loaded
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
-
Gerrit Code Review pushed patch set 1 for main to change 95662 status
NewUnder Review <span data-processor="relativetime" data-value="2026-09-06T08:34:42+00:00" > 09/06/26, 08:34 </span> -
Gerrit Code Review pushed patch set 2 for main to change 95662 <span data-processor="relativetime" data-value="2026-09-07T18:59:51+00:00" > 09/07/26, 18:59 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 95662 <span data-processor="relativetime" data-value="2026-09-30T09:18:27+00:00" > 09/30/26, 09:18 </span>
-
Wouter Wolters commented and changed status
Under ReviewResolved done0 %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.