@onlineapps/conn-orch-orchestrator 1.0.54 → 1.0.56

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.54",
3
+ "version": "1.0.56",
4
4
  "description": "Workflow orchestration connector for OA Drive - handles message routing and workflow execution",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -141,11 +141,12 @@ class WorkflowOrchestrator {
141
141
  return { skipped: true, reason: 'wrong_service' };
142
142
  }
143
143
 
144
- // Mark step as started
144
+ // Mark step as started (preserve existing retry_history if requeued)
145
145
  const updatedSteps = [...stepsArray];
146
146
  updatedSteps[currentIndex] = {
147
147
  ...step,
148
148
  _execution: {
149
+ ...step._execution, // Preserve existing _execution (including retry_history)
149
150
  status: 'in_progress',
150
151
  started_at: new Date().toISOString()
151
152
  }
@@ -179,11 +180,12 @@ class WorkflowOrchestrator {
179
180
  ? this._getStepId(nextStep)
180
181
  : 'api_delivery_dispatcher'; // Last step -> dispatcher
181
182
 
182
- // Update step with output and execution metadata
183
+ // Update step with output and execution metadata (preserve retry_history if exists)
183
184
  updatedSteps[currentIndex] = {
184
185
  ...step,
185
186
  output: result,
186
187
  _execution: {
188
+ ...updatedSteps[currentIndex]._execution, // Preserve existing (including retry_history from requeue)
187
189
  status: 'completed',
188
190
  started_at: updatedSteps[currentIndex]._execution?.started_at || new Date().toISOString(),
189
191
  completed_at: new Date().toISOString(),