django-q icon indicating copy to clipboard operation
django-q copied to clipboard

Strage cache error KeyError: 'cached'

Open pursonc opened this issue 2 years ago • 0 comments

Hi, guys. Every time I run python manage.py qcluster to start the queue. The error will come out. I need you guys to advise. Thanks.

Process Process-1:4:
Traceback (most recent call last):
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/chenpuxin/Code/miPool/mipool_python/env/lib/python3.9/site-packages/django_q/cluster.py", line 384, in monitor
    save_task(task, broker)
  File "/Users/chenpuxin/Code/miPool/mipool_python/env/lib/python3.9/site-packages/django_q/cluster.py", line 468, in save_task
    cached=task["cached"],
KeyError: 'cached'

pursonc avatar Aug 13 '23 10:08 pursonc