ADHOCWORKER raised unexpected: TypeError('__init__() takes at least 4 arguments (2 given)',)

hi there, I’m runnning Redash V7.0.0+b17489 on kubernetes and I’m having this error a lot.
I’m not sure where this come from.
Hope you can help me.

[2020-08-04 20:16:00,504][PID:1139][ERROR][ForkPoolWorker-1031] Task redash.tasks.refresh_queries[3b47d0e9-8ab6-4153-ad79-87654db0e4fb] raised unexpected: TypeError('__init__() takes at least 4 arguments (2 given)',)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/celery/app/", line 382, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/app/redash/", line 64, in __call__
    return TaskBase.__call__(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/celery/app/", line 641, in __protected_call__
    return*args, **kwargs)
  File "/app/redash/tasks/", line 190, in refresh_queries
    metadata={'Query ID':, 'Username': 'Scheduled'})
  File "/app/redash/tasks/", line 115, in enqueue_query
    if job.ready():
  File "/app/redash/tasks/", line 91, in ready
    return self._async_result.ready()
  File "/usr/local/lib/python2.7/dist-packages/celery/", line 311, in ready
    return self.state in self.backend.READY_STATES
  File "/usr/local/lib/python2.7/dist-packages/celery/", line 471, in state
    return self._get_task_meta()['status']
  File "/usr/local/lib/python2.7/dist-packages/celery/", line 410, in _get_task_meta
    return self._maybe_set_cache(self.backend.get_task_meta(
  File "/usr/local/lib/python2.7/dist-packages/celery/backends/", line 365, in get_task_meta
    meta = self._get_task_meta_for(task_id)
  File "/usr/local/lib/python2.7/dist-packages/celery/backends/", line 680, in _get_task_meta_for
    return self.decode_result(meta)
  File "/usr/local/lib/python2.7/dist-packages/celery/backends/", line 284, in decode_result
    return self.meta_from_decoded(self.decode(payload))
  File "/usr/local/lib/python2.7/dist-packages/celery/backends/", line 280, in meta_from_decoded
    meta['result'] = self.exception_to_python(meta['result'])
  File "/usr/local/lib/python2.7/dist-packages/celery/backends/", line 260, in exception_to_python
    exc = cls(*exc_msg if isinstance(exc_msg, tuple) else exc_msg)
TypeError: __init__() takes at least 4 arguments (2 given)

If any additional information is needed please let me know.

I’m pretty sure this is because of a old celery and kombu version. Which version of celery are you running? Iirc they fixed it in celery >= 4.4