Skip to content

Strage cache error KeyError: 'cached' #727

Description

@pursonc

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions