@onlineapps/conn-orch-orchestrator 1.0.45 → 1.0.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlineapps/conn-orch-orchestrator",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "Workflow orchestration connector for OA Drive - handles message routing and workflow execution",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -368,6 +368,7 @@ class WorkflowOrchestrator {
368
368
  error: error.stack
369
369
  });
370
370
 
371
+ // Publish to workflow.failed (DLQ queue - message stays until manual requeue/discard)
371
372
  await this.mqClient.publish('workflow.failed', {
372
373
  workflow_id,
373
374
  current_step,
@@ -382,6 +383,29 @@ class WorkflowOrchestrator {
382
383
  failed_at: new Date().toISOString()
383
384
  });
384
385
 
386
+ // ALSO publish to monitoring.workflow so dashboard shows the DLQ entry
387
+ // This is separate from the DLQ message - it's just for visibility
388
+ try {
389
+ await publishToMonitoringWorkflow(this.mqClient, {
390
+ event_type: 'failed',
391
+ workflow_id: workflow_id,
392
+ service_name: serviceName,
393
+ step_index: failedStepIndex,
394
+ step_id: current_step,
395
+ cookbook: cookbookDef,
396
+ context: finalContext,
397
+ error: { message: error.message },
398
+ status: 'failed',
399
+ timestamp: new Date().toISOString()
400
+ }, this.logger, { workflow_id, step_id: current_step });
401
+ } catch (monitoringError) {
402
+ // Don't fail if monitoring publish fails
403
+ this.logger.warn('[WorkflowOrchestrator] Failed to publish DLQ entry to monitoring', {
404
+ workflow_id,
405
+ error: monitoringError.message
406
+ });
407
+ }
408
+
385
409
  console.log(`[WorkflowOrchestrator] [DLQ] ✓ Successfully published workflow.failed for ${workflow_id}`);
386
410
  this.logger.info(`[WorkflowOrchestrator] [DLQ] ✓ Published workflow.failed: ${workflow_id}`);
387
411
  } catch (publishError) {