@onlineapps/conn-orch-orchestrator 1.0.4 → 1.0.5
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
|
@@ -95,6 +95,7 @@ class WorkflowOrchestrator {
|
|
|
95
95
|
const { publishToMonitoringWorkflow } = require('@onlineapps/mq-client-core').monitoring;
|
|
96
96
|
try {
|
|
97
97
|
const stepIndex = cookbookDef.steps.findIndex(s => s.id === current_step);
|
|
98
|
+
console.log(`[WorkflowOrchestrator] [PROGRESS] Publishing progress for ${workflow_id}, step: ${current_step}, index: ${stepIndex}`);
|
|
98
99
|
await publishToMonitoringWorkflow(this.mqClient, {
|
|
99
100
|
event_type: 'progress',
|
|
100
101
|
workflow_id: workflow_id,
|
|
@@ -106,11 +107,13 @@ class WorkflowOrchestrator {
|
|
|
106
107
|
status: 'in_progress',
|
|
107
108
|
timestamp: new Date().toISOString()
|
|
108
109
|
}, this.logger, { workflow_id, step_id: current_step });
|
|
110
|
+
console.log(`[WorkflowOrchestrator] [PROGRESS] ✓ Progress published for ${workflow_id}`);
|
|
109
111
|
} catch (monitoringError) {
|
|
110
112
|
// Don't fail workflow if monitoring publish fails (helper already logs)
|
|
113
|
+
console.error(`[WorkflowOrchestrator] [PROGRESS] ✗ Failed to publish progress:`, monitoringError);
|
|
111
114
|
this.logger.warn('Failed to publish workflow.progress to monitoring', {
|
|
112
115
|
workflow_id,
|
|
113
|
-
error: monitoringError.message
|
|
116
|
+
error: monitoringError.message || String(monitoringError)
|
|
114
117
|
});
|
|
115
118
|
}
|
|
116
119
|
|