celery / billiard

Multiprocessing Pool Extensions
Other
420 stars 251 forks source link

Use `dill.dumps` and `dill.loads` serialization instead of `pickle` #405

Open GregoirePelegrin opened 5 months ago

GregoirePelegrin commented 5 months ago

Summary

This is needed to allow passing more complex arguments to celery tasks (i.e. lambda expressions, instances from dynamically generated classes).
For additional information, please refer to both https://github.com/celery/celery/issues/9091#issue-2369538919 and the initial StackOverflow post.

Related issue

This issue is the sister issue from https://github.com/celery/celery/issues/9091#issue-2369538919.