auvipy / celery-flower

Under heavy development now: Real time Celery monitoring with ASGI 3.0 +
BSD 3-Clause "New" or "Revised" License
176 stars 36 forks source link

List all tasks fails with 500 error #6

Closed lukaszb closed 14 years ago

lukaszb commented 14 years ago

Just installed, got:

[ERROR] Uncaught exception GET /api/task/?limit=0 (127.0.0.1)
HTTPRequest(protocol='http', host='localhost:8989', method='GET', uri='/api/task/?limit=0', version='HTTP/1.1', remote_ip='127.0.0.1', remote_ip='127.0.0.1', body='', headers={'Accept-Language': 'en-US,en;q=0.8', 'Accept-Encoding': 'gzip,deflate,sdch', 'Host': 'localhost:8989', 'Accept': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'User-Agent': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4', 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'Connection': 'keep-alive', 'Referer': 'http://localhost:8989/', 'Cookie': 'sessionid=04b0c70812dc56bb5d7f1bca5305e678; csrftoken=ea2730d2c9695d592468ed805087993f'})
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.6.5/lib/python2.6/site-packages/tornado-1.0.1-py2.6.egg/tornado/web.py", line 780, in _execute
    getattr(self, self.request.method.lower())(*args, **kwargs)
  File "/usr/local/Cellar/python/2.6.5/lib/python2.6/site-packages/celerymon-0.2.0-py2.6.egg/celerymonitor/handlers/api.py", line 16, in _write_json
    content = fun(self, *args, **kwargs)
  File "/usr/local/Cellar/python/2.6.5/lib/python2.6/site-packages/celerymon-0.2.0-py2.6.egg/celerymonitor/handlers/api.py", line 33, in get
    return fun(self, *args, **kwargs)
  File "/usr/local/Cellar/python/2.6.5/lib/python2.6/site-packages/celerymon-0.2.0-py2.6.egg/celerymonitor/handlers/api.py", line 50, in list_tasks
    return state.tasks_by_timestamp(limit=limit)
TypeError: tasks_by_timestamp() got an unexpected keyword argument 'limit'
[ERROR] 500 GET /api/task/?limit=0 (127.0.0.1) 1.62ms
lukaszb commented 14 years ago

My bad - have been using newest celerymon and celery released few days ago...