mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-15 07:16:40 +01:00
web/state/queue: clear pipeline results on error
This commit is contained in:
parent
2ae0fd01dd
commit
a7c1317af7
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ export function addItem(item: CobaltQueueItem) {
|
||||||
export function itemError(id: string, workerId: string, error: string) {
|
export function itemError(id: string, workerId: string, error: string) {
|
||||||
update(queueData => {
|
update(queueData => {
|
||||||
if (queueData[id]) {
|
if (queueData[id]) {
|
||||||
|
if (queueData[id].state === "running" && queueData[id].pipelineResults) {
|
||||||
|
delete queueData[id].pipelineResults;
|
||||||
|
}
|
||||||
|
|
||||||
queueData[id] = {
|
queueData[id] = {
|
||||||
...queueData[id],
|
...queueData[id],
|
||||||
state: "error",
|
state: "error",
|
||||||
|
|
Loading…
Reference in a new issue