Skip to content

Commit b33874d

Browse files
authored
Fix queue cancelled status (#487)
1 parent 05c6193 commit b33874d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stores/queueStore.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ export class TaskItemImpl {
137137
case 'Pending':
138138
return TaskItemDisplayStatus.Pending
139139
case 'History':
140+
if (this.interrupted) return TaskItemDisplayStatus.Cancelled
141+
140142
switch (this.status!.status_str) {
141143
case 'success':
142144
return TaskItemDisplayStatus.Completed
143145
case 'error':
144-
return this.interrupted
145-
? TaskItemDisplayStatus.Cancelled
146-
: TaskItemDisplayStatus.Failed
146+
return TaskItemDisplayStatus.Failed
147147
}
148148
}
149149
}

0 commit comments

Comments
 (0)