fix backend
This commit is contained in:
parent
65891f5455
commit
0b44b3b66b
1 changed files with 2 additions and 2 deletions
|
@ -403,8 +403,8 @@ def getTaskStatus(request, data):
|
||||||
response['data'].update(res)
|
response['data'].update(res)
|
||||||
else:
|
else:
|
||||||
response['data']['result'] = res
|
response['data']['result'] = res
|
||||||
if status in default_backend.EXCEPTION_STATES:
|
if status in backend.EXCEPTION_STATES:
|
||||||
traceback = default_backend.get_traceback(task_id)
|
traceback = backend.get_traceback(task_id)
|
||||||
response['data'].update({
|
response['data'].update({
|
||||||
'result': str(res),
|
'result': str(res),
|
||||||
'exc': get_full_cls_name(res.__class__),
|
'exc': get_full_cls_name(res.__class__),
|
||||||
|
|
Loading…
Reference in a new issue