In order for everything to work, you need to convert kwargs dict into json using json.dumps
This process can be transferred inside the model PeriodicTask in save method
self.kwargs = json.dumps(self.kwargs)
In this case, we use the variable kwargs in the usual way by passing a dictionary to it and not a string
Summary:
Currently, if you try to create PeriodicTask with the argument kwargas: dict its converts into a simple string and the task becomes inactive
In order for everything to work, you need to convert kwargs dict into json using
json.dumps
This process can be transferred inside the model PeriodicTask in save methodIn this case, we use the variable kwargs in the usual way by passing a dictionary to it and not a string