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: true,
} }
: { : {
success: reachedMaxIterations success: true,
? AutomationStepStatus.MAX_ITERATIONS
: true,
items: this.loopStepOutputs, items: this.loopStepOutputs,
iterations: iterationCount, iterations: iterationCount,
} }
if (reachedMaxIterations && iterations !== 0) {
tempOutput.status = AutomationStepStatus.MAX_ITERATIONS
}
// Loop Step clean up // Loop Step clean up
this.executionOutput.steps.splice(pathStepIdx, 0, { this.executionOutput.steps.splice(pathStepIdx, 0, {
id: steps[stepToLoopIndex].id, id: steps[stepToLoopIndex].id,