Update task_manager.py

This commit is contained in:
cmdr2 2022-12-14 16:49:59 +05:30 committed by GitHub
parent e73a514e29
commit 7965318d9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,6 +372,8 @@ def thread_render(device):
session_cache.keep(task.request.session_id, TASK_TTL)
except Exception as e:
task.error = e
task.response = {"status": 'failed', "detail": str(task.error)}
task.buffer_queue.put(json.dumps(task.response))
print(traceback.format_exc())
continue
finally: