OAPI: rename job status requeued to requeueing

Rename job status `requeued` to `requeueing`, because it indicates a
process that's (if things are working well) happening currently.
This commit is contained in:
Sybren A. Stüvel 2022-05-19 17:22:35 +02:00
parent 1aed4bf729
commit 507985e258
2 changed files with 7 additions and 8 deletions

View File

@ -782,7 +782,7 @@ components:
- archived
- archiving
- cancel-requested
- requeued
- requeueing
- under-construction
TaskStatus:

View File

@ -32,13 +32,12 @@ export default {
const numTasks = 1;
return promise
.then(() => {
let message;
if (numTasks == 1) {
message = `Task ${description}`;
} else {
message = `${numTasks} tasks ${description}`;
}
this.notifs.add(message);
// There used to be a call to `this.notifs.add(message)` here, but now
// that task status changes are logged in the notifications anyway,
// it's no longer necessary.
// This function is still kept, in case we want to bring back the
// notifications when multiple tasks can be selected. Then a summary
// ("N tasks requeued") could be logged here.
})
.catch((error) => {
const errorMsg = JSON.stringify(error); // TODO: handle API errors better.