diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py
index 3b7db454efc165a0ec5a5b20e2e8cb70f47ab5e2..27ec5ce19e810c6b1f1cecb4303c81fe8e167295 100644
--- a/inventory_provider/tasks/worker.py
+++ b/inventory_provider/tasks/worker.py
@@ -409,7 +409,7 @@ def launch_refresh_cache_all(config):
 def check_task_status(task_id):
     r = AsyncResult(task_id, app=app)
     result = {
-        'id': task_id,
+        'id': r.id,
         'status': r.status,
         'exception': r.status in states.EXCEPTION_STATES,
         'ready': r.status in states.READY_STATES,