Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Worker instance from Thread Pool once task is running? #455

Open
flipswitchingmonkey opened this issue Jan 5, 2023 · 0 comments
Open

Comments

@flipswitchingmonkey
Copy link

I'm using Module Workers to run a number of complex tasks. These send back data while they are running via Observables. This works fine so far.

Now I'd like to have a pool of these Module Workers running. The issue is, using pool.queue() will not give me access to the worker that the task has been assigned to, thus I also can't subscribe to the Observables of that Worker. Is there a way to get the worker instance within the pool that my task is being assigned to?

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

No branches or pull requests

1 participant