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

Exception daemonic processes are not allowed to have children #58

Closed
guohaolee opened this issue Mar 7, 2019 · 4 comments
Closed

Exception daemonic processes are not allowed to have children #58

guohaolee opened this issue Mar 7, 2019 · 4 comments

Comments

@guohaolee
Copy link

Hi, I got this issue when deploying the timeout_decorator in celery tasks.

I have set use_signals = False.

The timeout works but will throw this error message. Checked around the internet and its probably due to the multiprocessing library and can be solved using billard.

Do you think you can implement billard library to replace multiprocessing?

@bitranox
Copy link

bitranox commented Mar 8, 2019

You might look here :

https://stackoverflow.com/questions/6974695/python-process-pool-non-daemonic

and You might give it a try, just by:

import billard as multiprocessing

@guohaolee
Copy link
Author

Hi, do you mean on my celery change to use billiard? Or inside the timeout decorator change to use billiard?

@bitranox
Copy link

bitranox commented Mar 8, 2019

As far as I know celery uses billard already.
Just inside the timeout decorator, replace the multiprocessing module with billard.
You might also try my decorator - https://github.com/bitranox/wrapt-timeout-decorator
it is using
"dill" instead of pickle (can pickle more datatypes)
and "multiprocess" instead of "multiprocessing"

@guohaolee
Copy link
Author

Alright, thanks for the information. Will try it out

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

2 participants