On old installs with a lot of tasks in the history, the task list is not sorted properly. I would expect queued tasks to come up first. Instead, tasks that have finished recently are queued before tasks that were queued before that.... It is a little confusing, and I have trouble even describing it, but it seems to me we should have a sort criteria available in the view that would be the task status and filter on that first.

Comments

ergonlogic’s picture

Assigned: Unassigned » ergonlogic

I believe the order should be:

  1. processing tasks;
  2. queued tasks;
  3. completed tasks.

Correct?

ergonlogic’s picture

Actually, come to think of it, I don't think that order makes much sense... They should probably just be sorted by when they were queued. In that case, it's just: Node revision: Vid desc

ergonlogic’s picture

Oh, I see, that doesn't work. Since the tasks are updated as their processed, the completed tasks' vid are updated, and so end up floating to the top of the list.

ergonlogic’s picture

I have a partial solution in e3258c42, which I've since reverted. Basically, I added a Views sort handler, and while it appears to properly sort tasks flagged as 'queued' and 'processing', 'warning' or 'error' tasks sink to the bottom.

ergonlogic’s picture

Status: Active » Fixed

Ok, fixed that in fdb4a44.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit e3258c4 on 6.x-2.x, 7.x-3.x, dev-sni, dev-helmo-3.x by ergonlogic:
    Issue #2119101: Fix tasks are not sorted properly.
    

  • Commit e3258c4 on 6.x-2.x, 7.x-3.x, dev-sni, dev-helmo-3.x by ergonlogic:
    Issue #2119101: Fix tasks are not sorted properly.