fix workflow count

This commit is contained in:
jxxghp
2025-03-15 10:16:25 +08:00
parent f5832d6a25
commit a0a11842cb
3 changed files with 5 additions and 5 deletions

View File

@@ -156,7 +156,7 @@ def reset_workflow(workflow_id: int,
# 停止工作流
global_vars.stop_workflow(workflow_id)
# 重置工作流
workflow.reset(db, workflow_id)
workflow.reset(db, workflow_id, reset_count=True)
# 删除缓存
SystemConfigOper().delete(f"WorkflowCache-{workflow_id}")
return schemas.Response(success=True)