Description
Feature Request
For reference, this would help here
Currently there is no way to declare a Task without having a Broker instance.
This can lead to sequencing issues in code launch.
Potentially, having a Task Registry you can bind a Broker to could alleviate this issue.
Benefits
It would still allow for multiple brokers, but also detach task-groupings (per Registry) from Broker configurations.
Importing modules declaring tasks would not longer implicitly create a Broker instance.
Issues
Currently when a task is registered, the params passed to it are checked against those supported by the Broker and its plugins.
This work would have to be delayed until Broker binding, potentially hiding configuration issues until later in the process.
Ideal solution
An ideal solution would allow for the current behavior where not explicitly listing a registry would bind a task to the default broker.
Potentially Brokers could present a Registry interface, so this behavior would simply be a pass-through, also allowing the default broker to be passed when no registry is specified.
Funding
- You can sponsor this specific effort via a Polar.sh pledge below
- We receive the pledge once the issue is completed & verified