mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
refactor workflow runner
This commit is contained in:
@ -147,9 +147,12 @@ class WorkflowTaskStopApi(Resource):
|
||||
"""
|
||||
Stop workflow task
|
||||
"""
|
||||
# TODO
|
||||
workflow_service = WorkflowService()
|
||||
workflow_service.stop_workflow_task(app_model=app_model, task_id=task_id, account=current_user)
|
||||
workflow_service.stop_workflow_task(
|
||||
task_id=task_id,
|
||||
user=current_user,
|
||||
invoke_from=InvokeFrom.DEBUGGER
|
||||
)
|
||||
|
||||
return {
|
||||
"result": "success"
|
||||
|
||||
Reference in New Issue
Block a user