#110606Avoid duplicate scheduler task resolution
Description
When `scheduler:execute` is called with explicit `—task` options, every
selected task is resolved twice through
`SchedulerTaskRepository::findByUid()`.
`getTasksToRun()` first resolves each task to validate that it exists and is
valid. `runTasks()` then immediately resolves the same task again before
executing it. Each lookup reads and deserializes the task record.
Reuse the task objects obtained during validation when executing explicitly
selected tasks.
The interactive selection flow, task ordering, duplicate handling and error
behaviour should remain unchanged. Add a test verifying that every explicitly
selected task is resolved only once.
Reviews 2
History 14
-
Gerrit Code Review pushed patch set 1 for main to change 95575 status
NewUnder Review <span data-processor="relativetime" data-value="2026-09-02T16:56:20+00:00" > 09/02/26, 16:56 </span> -
Gerrit Code Review pushed patch set 2 for main to change 95575 <span data-processor="relativetime" data-value="2026-09-02T20:18:04+00:00" > 09/02/26, 20:18 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 95595 <span data-processor="relativetime" data-value="2026-09-03T09:25:32+00:00" > 09/03/26, 09:25 </span>
-
Wouter Wolters commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-09-03T09:30:11+00:00" > 09/03/26, 09:30 </span>
Applied in changeset commit:f7d7458a2beceb99cf70a478bbeab622efec5276.