feat: Add draft hash check in workflow (#4251)
This commit is contained in:
parent
a1ab87107b
commit
8f3042e5b3
7 changed files with 53 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue