SouravNath commited on
Commit
8291e3d
·
1 Parent(s): 38700c8

fix: exclude task_id from **result kwargs to avoid duplicate argument error

Browse files
Files changed (1) hide show
  1. api/tasks.py +1 -1
api/tasks.py CHANGED
@@ -232,7 +232,7 @@ async def run_agent_task_async(
232
  "elapsed_seconds": round(elapsed, 2),
233
  }
234
 
235
- update_task_status(task_id, **result)
236
  await emit_fn("done", result)
237
  await emit_fn("log", {
238
  "step": 5, "total": 5,
 
232
  "elapsed_seconds": round(elapsed, 2),
233
  }
234
 
235
+ update_task_status(task_id, **{k: v for k, v in result.items() if k != "task_id"})
236
  await emit_fn("done", result)
237
  await emit_fn("log", {
238
  "step": 5, "total": 5,