add heavy loggin
This commit is contained in:
@@ -26,6 +26,21 @@ props.source.on<{ nodes: GraphNode[] }>('graph_update', (e) => {
|
||||
nodes.value = e.nodes
|
||||
})
|
||||
|
||||
props.source.on<{ report?: { status?: string } }>('job_complete', (e) => {
|
||||
const status = e.report?.status
|
||||
if (status === 'failed' || status === 'cancelled') {
|
||||
nodes.value = nodes.value.map(n => ({
|
||||
...n,
|
||||
status: n.status === 'running' ? 'error' : n.status,
|
||||
}))
|
||||
} else {
|
||||
nodes.value = nodes.value.map(n => ({
|
||||
...n,
|
||||
status: n.status === 'running' ? 'done' : n.status,
|
||||
}))
|
||||
}
|
||||
})
|
||||
|
||||
function onOpenRegionEditor(stage: string) {
|
||||
pipeline.openBBoxEditor(stage)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user