Skip to content

A task listed several times in the outputs of a task is executed once per occurrence, silently #414

Closed

Description

@njoubert-cleverage

A task listed several times in the outputs (or the error_outputs) of a task, e.g. outputs: [d, d], is executed once per occurrence, without any warning. It is most likely a configuration mistake (e.g. after a copy-paste), and it doubles the side effects of the task (written lines, API calls…).

Fix: deprecate it in 5.7 (the behaviour is kept until then), throw an exception in v6.0.

The other part of the audit point (the options of a task that does not declare any are ignored) is not handled: a task implementing TaskInterface directly may read its options itself ($state->getTaskConfiguration()->getOption()), so they cannot be detected as unused.

Found during the audit v3 (audit-v3-angles.md #175).

Activity

  1. added 2 commits that reference this issue on Nov 3, 2026
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions