MCPcopy Index your code
hub / github.com/simstudioai/sim / notifyForkWorkflowChanged

Function notifyForkWorkflowChanged

apps/sim/lib/workspaces/fork/socket.ts:33–43  ·  view source on GitHub ↗
(workflowId: string)

Source from the content-addressed store, hash-verified

31 * other, and a failure only warns - it never blocks the promote/rollback.
32 */
33export 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}

Callers 2

rollbackForkFunction · 0.90
promoteForkFunction · 0.90

Calls 2

postToRealtimeFunction · 0.85
warnMethod · 0.65

Tested by

no test coverage detected