fix PR comment for keeping status boolean and adding status conditionally

This commit is contained in:
Naveen Kumar 2024-11-29 15:30:20 +05:30
parent 6f8f866b7e
commit 26f2c69fb9
1 changed files with 5 additions and 3 deletions

View File

@ -470,13 +470,15 @@ class Orchestrator {
success: true,
}
: {
success: reachedMaxIterations
? AutomationStepStatus.MAX_ITERATIONS
: true,
success: true,
items: this.loopStepOutputs,
iterations: iterationCount,
}
if (reachedMaxIterations && iterations !== 0) {
tempOutput.status = AutomationStepStatus.MAX_ITERATIONS
}
// Loop Step clean up
this.executionOutput.steps.splice(pathStepIdx, 0, {
id: steps[stepToLoopIndex].id,