(workflowId: string)
| 31 | * other, and a failure only warns - it never blocks the promote/rollback. |
| 32 | */ |
| 33 | export async function notifyForkWorkflowChanged(workflowId: string): Promise<void> { |
| 34 | const results = await Promise.allSettled([ |
| 35 | postToRealtime('/api/workflow-updated', workflowId), |
| 36 | postToRealtime('/api/workflow-deployed', workflowId), |
| 37 | ]) |
| 38 | for (const result of results) { |
| 39 | if (result.status === 'rejected') { |
| 40 | logger.warn('Fork sync socket notification failed', { workflowId, error: result.reason }) |
| 41 | } |
| 42 | } |
| 43 | } |
no test coverage detected