File tree Expand file tree Collapse file tree
apps/sim/lib/workflows/orchestration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,14 +38,17 @@ const logger = createLogger('DeployOrchestration')
3838export async function notifySocketDeploymentChanged ( workflowId : string ) : Promise < void > {
3939 try {
4040 const socketServerUrl = env . SOCKET_SERVER_URL || 'http://localhost:3002'
41- await fetch ( `${ socketServerUrl } /api/workflow-deployed` , {
41+ const response = await fetch ( `${ socketServerUrl } /api/workflow-deployed` , {
4242 method : 'POST' ,
4343 headers : {
4444 'Content-Type' : 'application/json' ,
4545 'x-api-key' : env . INTERNAL_API_SECRET ,
4646 } ,
4747 body : JSON . stringify ( { workflowId } ) ,
4848 } )
49+ if ( ! response . ok ) {
50+ logger . warn ( `Socket deployment notification failed (${ response . status } ) for workflow ${ workflowId } ` )
51+ }
4952 } catch ( error ) {
5053 logger . error ( 'Error sending workflow deployed event to socket server' , error )
5154 }
You can’t perform that action at this time.
0 commit comments