-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Play nice with multiprocessing? #147
Comments
This still appears to be an issue. Anything I can do to help? Perhaps related to - https://stackoverflow.com/questions/44144584/typeerror-cant-pickle-thread-lock-objects |
i believe this also causes issues with import tenacity
import cloudpickle
@tenacity.retry
def f(x):
return x
cloudpickle.dumps(f)
|
Facing the same issue. |
sergei-maertens
added a commit
to open-formulieren/open-forms
that referenced
this issue
Apr 8, 2024
The retry error from tenacity uses threading locks under the hood, which cannot be pickled. Specifying reraise=True avoids this particular codepath. See upstream issues: * jd/tenacity#429 * jd/tenacity#182 * jd/tenacity#147
Any update on this? Facing the same issue. |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How does one make this library play nice with multiprocessing?
Output:
The text was updated successfully, but these errors were encountered: