title: In celery how to get task position in queue?
body: <p>I'm using Celery with Redis as broker and I can see that the queue is actually a redis list with the serialized task as the items.</p>
  
  <p>My question is, if I have an AsyncResult object as a result of calling <code>&lt;task&gt;.delay()</code>, is there a way to determine the item's position in the queue?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I'm finally able to get the position using:</p>
  
  <pre><code>from celery.task.control import inspect
  i = inspect()
  i.reserved()
  </code></pre>
  
  <p>but its a bit slow since it needs to communicate with all the workers.</p>