>>> print(task.state) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/celery/result.py", line 471, in state return self._get_task_meta()['status'] File "/usr/local/lib/python3.6/site-packages/celery/result.py", line 410, in _get_task_meta return self._maybe_set_cache(self.backend.get_task_meta(self.id)) File "/usr/local/lib/python3.6/site-packages/celery/backends/base.py", line 359, in get_task_meta meta = self._get_task_meta_for(task_id) File "/usr/local/lib/python3.6/site-packages/celery/backends/base.py", line 674, in _get_task_meta_for return self.decode_result(meta) File "/usr/local/lib/python3.6/site-packages/celery/backends/base.py", line 278, in decode_result return self.meta_from_decoded(self.decode(payload)) File "/usr/local/lib/python3.6/site-packages/celery/backends/base.py", line 274, in meta_from_decoded meta['result'] = self.exception_to_python(meta['result']) File "/usr/local/lib/python3.6/site-packages/celery/backends/base.py", line 248, in exception_to_python from_utf8(exc['exc_type']), __name__) KeyError: 'exc_type'