Make it possible to sort the Celery task table and RabbitMQ queue table

Issue #710 resolved
David Platten created an issue

I'd like to be able to sort these two tables by clicking on the table headings.

Comments (16)

  1. David Platten reporter

    It's easy to implement the sorting of the tables, but the queues_upate and tasks_update JavaScript functions that are set to run every 2000 ms undo any column sorting that you have done. Hmm.

  2. Ed McDonagh

    Don't know of a solution to that. On the exports page the AJAX just updates current and failed, not whatever was existing when the page was loaded. But I don't think I could do that with RabbitMQ and Celery.

    We could list them according to status I think in the view - active ones in a different table maybe.

  3. Ed McDonagh

    I'm planning on using the status and timestamp of the celery tasks to push most of them to a collapsed concertina panel to keep the list manageable. I think otherwise, with a flower service running for a while, it will go to 5000 tasks before they start dropping off. Which is too many :)

  4. Ed McDonagh

    I meant to say - I won't do that until This is merged in, as I've made changes to recognise the different types of tasks.

  5. David Platten reporter

    I need to add a custom sort key to the two time-based columns so that they sort correctly. The solution will be similar to what I implemented for the home page tables in commit 6229e7ed5f54 as part of issue #659.

  6. David Platten reporter

    Added number of seconds since now as custom sort field for the recent and older tasks. The tables now sort correctly. References issue #710

    → <<cset 8b435b43d38a>>

  7. David Platten reporter

    Changed default sorting so that recent and older task tables show most recent tasks at the top. This seems like the most sensible order to start with. References issue #710

    → <<cset e9be89689bf5>>

  8. Log in to comment