Alex S-B
2013-04-11 00:21:30 UTC
I'm using django-celery to run some tasks that make use of PyCrypto (via
python-keyczar). PyCrypto requires that Crypto.Random.atfork() be
executed whenever os.fork() is invoked. I discovered this because it raises
an exception[1] when I try to use it in my celery task. How can I run this
whenever celery initializes a newly forked process? Is there a standard
hook or signal to use to insert this code?
Thanks!
Alex
[1] "AssertionError: PID check failed. RNG must be re-initialized after
fork(). Hint: Try Random.atfork()"
python-keyczar). PyCrypto requires that Crypto.Random.atfork() be
executed whenever os.fork() is invoked. I discovered this because it raises
an exception[1] when I try to use it in my celery task. How can I run this
whenever celery initializes a newly forked process? Is there a standard
hook or signal to use to insert this code?
Thanks!
Alex
[1] "AssertionError: PID check failed. RNG must be re-initialized after
fork(). Hint: Try Random.atfork()"
--
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.