Return the Worker as documented from Supervised#prepare! - #11
Conversation
9130b21 to
63c4878
Compare
|
It's not guaranteed that |
The docs say it returns the worker: async-service-supervisor/lib/async/service/supervisor/supervised.rb Lines 73 to 78 in 852c5a6 Could change the docs instead.
I don't think what I was doing when I ran into this was the right approach anyway, but I had overridden def prepare!(instance)
worker = super
do_something_with(worker.utilization_registry)
worker
end |
|
For now, I'll close this PR, as I'm not sure it solves the right problem. If you want to augment the worker, you'd be better off wrapping |
Types of Changes
Contribution