Web: allow cancelling a job also after it failed

For task scheduling this doesn't matter, but for human workflow it can be
useful to differentiate between "failed" (and should be retried) and
"cancelled" (no longer relevant).
This commit is contained in:
Sybren A. Stüvel 2022-04-21 17:12:28 +02:00
parent 1ac37ab625
commit 2e2184df62

View File

@ -23,7 +23,7 @@ export const useJobs = defineStore('jobs', {
return this._anyJobWithStatus(["queued", "paused", "failed", "completed", "canceled"])
},
canCancel() {
return this._anyJobWithStatus(["queued", "active"])
return this._anyJobWithStatus(["queued", "active", "failed"])
},
},
actions: {