mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
- Added `TriggerInvokeError` and `TriggerIgnoreEventError` for better error categorization during trigger invocation. - Updated `TriggerInvokeResponse` to include a `cancelled` field, indicating if a trigger was ignored. - Enhanced `TriggerManager` to handle specific errors and return appropriate responses. - Refactored `dispatch_triggered_workflows` to improve workflow execution logic and error handling. These changes improve the robustness and clarity of the trigger management system.
9 lines
177 B
Python
9 lines
177 B
Python
class TriggerProviderCredentialValidationError(ValueError):
|
|
pass
|
|
|
|
class TriggerInvokeError(Exception):
|
|
pass
|
|
|
|
class TriggerIgnoreEventError(TriggerInvokeError):
|
|
pass
|