Search code examples
celerycelery-taskcelerydflower

flower (Celery monitoring tool) API - how does the tasks sorted?


I'm using flower API Reference to build my own monitoring tool.

When calling to: GET /api/tasks - how are tasks sorted? If I make a request each minute, will I get the most newest tasks received? started? finished? Is there an option to choose sort method?


Solution

  • Flower relies on celery events. Looks like all the tasks are sorted by their event timestamps.

    Unfortunately, there is no option to sort tasks as of now. However, it is very easy to modify the existing api to support sort.