1👍
✅
The task arguments must be serialized.
Celery uses the Python pickle protocol by default, but also supports json, yaml, msgpack or custom serializers.
The objects you are trying to send cannot be pickled. There’s a chance you could make them pickleable, but in the end — passing locals as task arguments is not a good practice.
Source:stackexchange.com