We not only need to check the job item state but also the job state when listing the pending job.

Comments

berdir’s picture

Actually not sure if this is true, it seems like cancelling itself doesn't work correctly.

vasi1186’s picture

You should be able to cancel jobs now, but for job items, there is no such a status like "Canceled", so they will just remain in their state...

miro_dietiker’s picture

I doubt this is still broken.

blueminds’s picture

Component: Code » Core
Issue summary: View changes
Status: Active » Fixed

In the Issue #2106637 we introduced the aborted approach rather than cancelled. The aborted flag has been added to job items as well and if a job is aborted (the method cancelled() is still not renamed) it will abort all its items. So this is fixed.

Status: Fixed » Closed (fixed)

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