You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I instantiate an AsyncResult with None, and then call "res.state", I will get a TypeError. The error occurs because task_id of "res" is None, and one cannot join a list of strings and None.
Traceback:
TypeError: sequence item 1: expected string, NoneType found -
celery/result.py in state:
celery/result.py in _get_task_meta:
celery/backends/base.py in get_task_meta:
celery/backends/base.py _get_task_meta_for:
celery/backends/base.py in get_key_for_task:
return key_t('').join([
self.task_keyprefix, key_t(task_id), key_t(key),
])
That's a good question indeed. One option would be to return an empty string or None as result.status. The other would be to raise a more descriptive exception. I don't have a good argument as to which one of these is better.
If I instantiate an AsyncResult with None, and then call "res.state", I will get a TypeError. The error occurs because task_id of "res" is None, and one cannot join a list of strings and None.
Traceback:
celery report:
The text was updated successfully, but these errors were encountered: