Issue Task Resolved

#110606Avoid duplicate scheduler task resolution

Wouter Wolters 09/02/26, 16:51 updated 09/03/26, 09:30

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

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 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.