MCPcopy
hub / github.com/simstudioai/sim / emitWorkflowDeployedEvent

Function emitWorkflowDeployedEvent

apps/sim/lib/workspace-events/emitter.ts:203–219  ·  view source on GitHub ↗
(params: {
  workflowId: string
  workflowName: string
  workspaceId: string
  version: number | null
})

Source from the content-addressed store, hash-verified

201 * rollback/activation). Fire-and-forget: failures never affect the deploy.
202 */
203export async function emitWorkflowDeployedEvent(params: {
204 workflowId: string
205 workflowName: string
206 workspaceId: string
207 version: number | null
208}): Promise<void> {
209 await emitWorkflowLifecycleEvent({
210 eventType: 'workflow_deployed',
211 workflowId: params.workflowId,
212 workspaceId: params.workspaceId,
213 payload: buildDeployEventPayload({
214 workflowId: params.workflowId,
215 workflowName: params.workflowName,
216 version: params.version,
217 }),
218 })
219}
220
221/**
222 * Emits a workflow_undeployed event to subscribed side-effect workflows.

Callers 3

performFullDeployFunction · 0.90
performActivateVersionFunction · 0.90
emitter.test.tsFile · 0.90

Calls 2

buildDeployEventPayloadFunction · 0.90

Tested by

no test coverage detected