feat: Add draft hash check in workflow (#4251)

This commit is contained in:
takatost
2024-05-10 14:48:29 +08:00
committed by GitHub
parent a1ab87107b
commit 8f3042e5b3
7 changed files with 53 additions and 8 deletions

View File

@@ -91,3 +91,9 @@ class DraftWorkflowNotExist(BaseHTTPException):
error_code = 'draft_workflow_not_exist'
description = "Draft workflow need to be initialized."
code = 400
class DraftWorkflowNotSync(BaseHTTPException):
error_code = 'draft_workflow_not_sync'
description = "Workflow graph might have been modified, please refresh and resubmit."
code = 400