-
-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Description
Summary
I'd like to request support for dynamically registering workers at runtime, rather than only at application startup.
Use Case
In my application, I need to add workers dynamically based on runtime conditions, such as:
- User-defined task types loaded from a database/configuration
- Adding new job handlers without restarting the application
Current Behavior
Currently, workers must be registered before calling Monitor::run():
Monitor::::new()
.register(worker1)
.register(worker2)
.run()
.awaitOnce run() is called, there's no way to add additional workers.
Questions
- Is this use case something you've considered?
- Are there architectural constraints that make this difficult to implement?
- Is there a workaround I might be missing?
Thank you for this excellent library! 🙏
Metadata
Metadata
Assignees
Labels
No labels