Open jadkins89 opened 4 years ago
i'm afraid the ordering is not supported by bulljs
https://github.com/OptimalBits/bull/blob/develop/REFERENCE.md#queuegetjobs
however if it makes sense, it's possible to sort it in the frontend only.
for page number selector, i think you could simply modify the URL page=1
<- change it here
I am thinking front end only sorting, though for large amounts of jobs there may be a noticeable delay. Pagination seems simple enough.
Handling sorting in server/controllers/jobs.js
is a viable option. You could add an additional parameter to the query that is a sort type, grab all the jobs, sort and paginate locally versus through the API. If I get time, I'll work up some code.
hmm that will be great @jadkins89~
Providing a way to sort the jobs lists by certain attributes, specifically for us delay time (being able to see which one will run next) would be very nice. Maybe something along the lines of clicking on the column name to sort asc / desc?
Secondly, along these same lines. I deal with some queues that have thousands of jobs. Would it be possible to add a page number selector instead of just incrementing through them?
Thanks for this UI tool, its great!