0

I am trying to get notifications set up with onesignal through the use of Django rq jobs and pickle but it doesn't seem to be working. Do you know what could possibly be the problem?

I used this below code

 to import pickle

pickle.HIGHEST_PROTOCOL = 5

I have tried to set the pickle version but it did not work. I am facing issues with Django rq jobs as a result and receiving this error message below:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/rq/worker.py", line 931, in perform_job
    self.prepare_job_execution(job, heartbeat_ttl)
  File "/usr/local/lib/python3.7/site-packages/rq/worker.py", line 829, in prepare_job_execution
    self.procline(msg.format(job.func_name, job.origin, time.time()))
  File "/usr/local/lib/python3.7/site-packages/rq/job.py", line 246, in func_name
    self._deserialize_data()
  File "/usr/local/lib/python3.7/site-packages/rq/job.py", line 214, in _deserialize_data
    self._func_name, self._instance, self._args, self._kwargs = self.serializer.loads(self.data)
ValueError: unsupported pickle protocol: 5
Frank Castle
  • 335
  • 3
  • 23

0 Answers0