Skip to content

Commit 75d8c36

Browse files
committed
Manually set pipeline status on execution to trigger UI updates
1 parent 177b635 commit 75d8c36

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/components/pipeline/nodes/output/OutputNode.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,13 @@ export function OutputNode() {
8080
}, [litlytics]);
8181

8282
const doRunPipeline = async () => {
83-
await litlytics.runPipeline();
83+
await litlytics.runPipeline({
84+
// very hacky, but will trigger UI re-renders
85+
// while setting status internally won't because proxy doesn't see those triggers
86+
onStatus: (status) => {
87+
litlytics.setPipelineStatus(status);
88+
},
89+
});
8490
};
8591

8692
const running =

0 commit comments

Comments
 (0)