mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
refactor: improve trigger metadata handling and streamline workflow service
- Updated ScheduleTriggerDebugEventPoller to include an empty files list in workflow_args. - Enhanced WorkflowAppService to handle trigger metadata more effectively, including a new method for processing metadata and removing the deprecated _safe_json_loads function. - Adjusted PluginTriggerMetadata to use icon_filename and icon_dark_filename for better clarity. - Simplified async workflow task parameters by changing triggered_from to trigger_from for consistency.
This commit is contained in:
@ -58,12 +58,11 @@ class ScheduleTriggerData(TriggerData):
|
||||
class PluginTriggerMetadata(TriggerMetadata):
|
||||
"""Plugin trigger metadata"""
|
||||
|
||||
plugin_id: str
|
||||
endpoint_id: str
|
||||
plugin_unique_identifier: str
|
||||
provider_id: str
|
||||
icon_url: str
|
||||
icon_dark_url: str
|
||||
icon_filename: str
|
||||
icon_dark_filename: str
|
||||
|
||||
|
||||
class PluginTriggerData(TriggerData):
|
||||
|
||||
Reference in New Issue
Block a user