- Add human task dspy: human_complete, human_list, approval_approve, approval_reject - Add task_restart.dspy for restarting completed/failed tasks - Enhance task_detail.ui: inline human task forms, approval buttons, restart - New step_panel.ui: view/modify step artifacts with cascade rerun - Update task_list.ui: Tabular with search_form filter by pipeline/state - Update index.ui: embed task list Tabular inline - Update load_path.py: register new dspy/ui paths
12 lines
373 B
Plaintext
12 lines
373 B
Plaintext
tenant_id = (await get_userorgid()) or '0'
|
|
task_id = params_kw.get('task_id', '')
|
|
|
|
if not task_id:
|
|
return json.dumps({"success": False, "message": "缺少task_id"}, ensure_ascii=False)
|
|
|
|
try:
|
|
result = await pipeline_restart(tenant_id, task_id)
|
|
return result
|
|
except Exception as e:
|
|
return json.dumps({"success": False, "message": str(e)}, ensure_ascii=False)
|