mirror of https://github.com/langgenius/dify.git
fix(workflow): enhance response structure in DraftWorkflowTriggerRunApi
- Added a "retry_in" field to the response when no event is found, improving the API's feedback during workflow execution.
This commit is contained in:
parent
8f854e6a45
commit
31c9d9da3f
|
|
@ -1152,7 +1152,7 @@ class DraftWorkflowTriggerRunApi(Resource):
|
|||
node_id=node_id,
|
||||
)
|
||||
if not event:
|
||||
return jsonable_encoder({"status": "waiting"})
|
||||
return jsonable_encoder({"status": "waiting", "retry_in": 2000})
|
||||
|
||||
workflow_args = {
|
||||
"inputs": event.model_dump(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue