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:
parent
1ac37ab625
commit
2e2184df62
@ -23,7 +23,7 @@ export const useJobs = defineStore('jobs', {
|
|||||||
return this._anyJobWithStatus(["queued", "paused", "failed", "completed", "canceled"])
|
return this._anyJobWithStatus(["queued", "paused", "failed", "completed", "canceled"])
|
||||||
},
|
},
|
||||||
canCancel() {
|
canCancel() {
|
||||||
return this._anyJobWithStatus(["queued", "active"])
|
return this._anyJobWithStatus(["queued", "active", "failed"])
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user