@melaya/runner 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connection.js +8 -0
- package/package.json +1 -1
package/dist/connection.js
CHANGED
|
@@ -134,6 +134,14 @@ export async function connect(opts) {
|
|
|
134
134
|
activeProcesses.delete(payload.runId);
|
|
135
135
|
const status = code === 0 ? "done" : "failed";
|
|
136
136
|
socket.emit("runner:runComplete", { runId: payload.runId, status });
|
|
137
|
+
// Also emit a pushEvent so the frontend clears the LIVE state
|
|
138
|
+
// (runner:runComplete only updates the DB, it doesn't broadcast)
|
|
139
|
+
socket.emit("runner:event", {
|
|
140
|
+
run_id: payload.runId,
|
|
141
|
+
event_type: "run_status",
|
|
142
|
+
status,
|
|
143
|
+
project: payload.project,
|
|
144
|
+
});
|
|
137
145
|
console.log(chalk.gray(` ■ Pipeline finished (exit ${code})\n`));
|
|
138
146
|
console.log(chalk.gray(" Waiting for pipeline runs...\n"));
|
|
139
147
|
});
|