Problems encountered in the development version of various examples in this article as follows:
Python3.6.8
Django==2.2
celery==4.4.0
kombu==4.6.7
repeat == 3.3.0
Screenshot probably given as follows:
In the development of the use of celery + redis + django error encountered scenes
kombu.exceptions.EncodeError:Object of type is not JSON serializable
Solution:
In the project's setting to increase such a configuration, it can be
# Celery == 4 the required configuration parameters
CELERY_TASK_SERIALIZER = 'pickle'
CELERY_RESULT_SERIALIZER = 'pickle'
CELERY_ACCEPT_CONTENT = ['pickle', 'json']
The reason given:
celery4 version defaults to using JSON as the Serializer , and celery3 version of the default pickle .
To make the error eliminate the need to add more settings.
The best problem resolved successfully: Run the following results