Skip to content

Commit

Permalink
Track started status of task
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Nov 17, 2023
1 parent 3ee36cd commit c7247fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion API/raw_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ def get_osm_current_snapshot_as_file(
)

queue_name = "recurring_queue" if not params.uuid else "raw_default"
task = process_raw_data.apply_async(args=(params,), queue=queue_name)
task = process_raw_data.apply_async(
args=(params,), queue=queue_name, track_started=True
)
return JSONResponse({"task_id": task.id, "track_link": f"/tasks/status/{task.id}/"})


Expand Down

0 comments on commit c7247fc

Please sign in to comment.