Skip to content

#339 - Reject a shared task service used by several tasks of a process - #340

Open
njoubert-cleverage wants to merge 2 commits into
mainfrom
339
Open

njoubert-cleverage wants to merge 2 commits into
mainfrom
339

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #339.

  • TaskLocatorCompilerPass rejects a shared service referenced by several tasks of the same process (task: code or service:), with an InvalidArgumentException naming the service, the tasks and the process and asking for shared: false. These tasks ran with the same instance, without error.
  • A shared service used once by each of several processes is still accepted.
  • Documentation: 03-custom_tasks.md, 05-good_practices.md.
  • Tests in TaskLocatorCompilerPassTest.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

A configuration referencing the same shared service from several tasks of a process no longer compiles. It did not work as expected (single instance, options of one task applied to all); the fix is to declare the service with shared: false, which the autoconfiguration already does for TaskInterface services.

🤖 Generated with Claude Code

njoubert-cleverage and others added 2 commits October 22, 2026 17:18
…e process when the container is compiled: all these tasks ran with the same instance, without error. Update documentation, add tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A shared task service referenced by several tasks of a process runs all of them with the same instance

1 participant