-
Notifications
You must be signed in to change notification settings - Fork 47
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
Persistent context #47
Comments
Related issue: #42 |
#48 PR |
@darky Thanks for this issue! Well, let me check if I got it rightly: you need a global bucket shared between worker threads to avoid multiple massive serialisations/deserialisations, correct? Anyway, your PR is moving the serialisation/deserialisation problem from the user to the core: darky@67c21ae#diff-c9253097723f89dd4716748fab2e00cdR108 |
It occurred once at first time, after it always available via darky@67c21ae#diff-5bfbc2def8d97c3939b537c3f6f31b3eR3
Can you please provide little example, also you can close #42 via it example :) |
Yep, agree. Maybe better to use |
In this scenario, would I have a bit of a weird use case:
Ideally i'd like to be able to do the following:
unfortunately the serialization cost is too high without persistent state, and idea the state would be mutable would be advantageous, otherwise i'd have to |
Need ability to pass some context firstly and then, it will be always available in workers pool.
For example, CPU-intensive geo task - check point in polygons.
Polygons so weight and every time serialize - deserialize it so expensive.
Would be better to pass it firstly
And then on every job execute it always accessible:
The text was updated successfully, but these errors were encountered: