title: How can I make a dashboard with all pending tasks using Celery?
body: <p>I want to have some place where I can watch all the pendings tasks.</p>
  
  <p>I'm not talking about the registered functions/classes as tasks, but the actual scheduled jobs for which I could display: name, task_id, eta, worker, etc.</p>
  
  <p>Using Celery 2.0.2 and djcelery, I found `inspect' in the documentation. I tried:</p>
  
  <pre><code>from celery.task.control import inspect
  
  def get_scheduled_tasks(nodes=None):
  
      if nodes:
          i = inspect(nodes)
      else:
          i = inspect()
  
      scheduled_tasks = []
      dump = i.scheduled()
      if dump:
          for worker, tasks  in dump:
                  for task in tasks:
                      scheduled_task = {}
                      scheduled_task.update(task["request"])
                      del task["request"]
                      scheduled_task.update(task)
                      scheduled_task["worker"] = worker 
                      scheduled_tasks.append(scheduled_task)
  
      return scheduled_tasks  
  </code></pre>
  
  <p>But it hangs forever on <code>dump = i.scheduled()</code>.</p>
  
  <p>Strange, because otherwise everything works.</p>
  
  <p>Using Ubuntu 10.04, django 1.0 and virtualenv.</p>