Skip to content

Commit

Permalink
Fix for response as PENDING always when the API deployment doesn't ti… (
Browse files Browse the repository at this point in the history
#1148)

Fix for response as PENDING always when the API deployment doesn't time out

Signed-off-by: Ritwik G <[email protected]>
  • Loading branch information
ritwik-g authored Feb 22, 2025
1 parent f96dedc commit 2a3a66d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/workflow_manager/workflow_v2/workflow_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ def execute_workflow_async(
task = AsyncResultData(async_result=async_execution)
celery_result = task.to_dict()
task_result = celery_result.get("result")
# Fetch the object agian to get the latest status.
workflow_execution = WorkflowExecution.objects.get(id=execution_id)
execution_response = ExecutionResponse(
workflow_id,
execution_id,
Expand Down

0 comments on commit 2a3a66d

Please sign in to comment.