Files
dify/api/services/errors/workflow_service.py
Mariesandautofix-ci[bot] c6a3bdb00d fix(workflow): serialize concurrent draft initialization (#47178)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-11-26 06:07:52 +00:00

18 lines
506 B
Python

class WorkflowInUseError(ValueError):
"""Raised when attempting to delete a workflow that's in use by an app"""
pass
class DraftWorkflowDeletionError(ValueError):
"""Raised when attempting to delete a draft workflow"""
pass
class WorkflowDraftInitializationBusyError(RuntimeError):
"""The request could not acquire the Redis lease required to create a draft."""
def __init__(self) -> None:
super().__init__("Workflow draft initialization is busy. Please try again.")