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:
Harry 2025-10-10 18:04:24 +08:00
parent 8f854e6a45
commit 31c9d9da3f
1 changed files with 1 additions and 1 deletions

View File

@ -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(),