mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
- Updated `DraftWorkflowTriggerNodeApi` to utilize the new `TriggerDebugEvent` and `TriggerDebugEventPoller` for improved event polling. - Removed deprecated `poll_debug_event` methods from `TriggerService`, `ScheduleService`, and `WebhookService`, consolidating functionality into the new event structure. - Enhanced error handling in `invoke_trigger_event` to utilize `TriggerPluginInvokeError` for better clarity on invocation issues. - Updated frontend API routes to reflect changes in trigger event handling, ensuring consistency across the application.
18 lines
294 B
Python
18 lines
294 B
Python
from core.plugin.impl.exc import PluginInvokeError
|
|
|
|
|
|
class TriggerProviderCredentialValidationError(ValueError):
|
|
pass
|
|
|
|
|
|
class TriggerPluginInvokeError(PluginInvokeError):
|
|
pass
|
|
|
|
|
|
class TriggerInvokeError(Exception):
|
|
pass
|
|
|
|
|
|
class TriggerIgnoreEventError(TriggerInvokeError):
|
|
pass
|