WIP: Allow jobs to be submitted in paused
status
#104318
@ -23,11 +23,11 @@ export const useTasks = defineStore('tasks', {
|
|||||||
const jobs = useJobs();
|
const jobs = useJobs();
|
||||||
const activeJob = jobs.activeJob;
|
const activeJob = jobs.activeJob;
|
||||||
|
|
||||||
// Check if the job status is 'pause-requested'
|
// Check if the job status is 'pause-requested'.
|
||||||
if (activeJob && activeJob.status === 'pause-requested') {
|
if (activeJob && activeJob.status === 'pause-requested') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Allow cancellation for specified task statuses
|
// Allow cancellation for specified task statuses.
|
||||||
return this._anyTaskWithStatus(['queued', 'active', 'soft-failed']);
|
return this._anyTaskWithStatus(['queued', 'active', 'soft-failed']);
|
||||||
},
|
},
|
||||||
canRequeue() {
|
canRequeue() {
|
||||||
|
Loading…
Reference in New Issue
Block a user