bugfix
This commit is contained in:
parent
8ca04ba691
commit
8c070c692a
16
wwwroot/v1/tasks/index.dspy
Normal file
16
wwwroot/v1/tasks/index.dspy
Normal file
@ -0,0 +1,16 @@
|
||||
taskid = params_kw.taskid
|
||||
try:
|
||||
s = await get_asynctask_status(request, taskid)
|
||||
return {
|
||||
'status': 'ok',
|
||||
'data': s,
|
||||
}
|
||||
except Exception as e:
|
||||
err = Exception(f'{taskid} get task info error({e})')
|
||||
exception(f'{err}')
|
||||
return {
|
||||
"status": "error",
|
||||
"data": {
|
||||
"message": str(err)
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user