Skip to content

Commit

Permalink
Always exit with 0
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed May 30, 2019
1 parent b5d6c1a commit e5dfdd2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ export class GoalAutomationEventListener extends AutomationEventListenerSupport
safeExit(0);
} catch (e) {
logger.error(`Processing goal failed: ${e.message}`);
safeExit(1);
// We always have to exit with 0 here as otherwise k8s will launch a new instance
// FulfillGoalOnRequested throws an error in case of a failing goal
// ^ TODO CD look at if that makes any sense or can be changed
safeExit(0);
}
}
}
Expand Down

0 comments on commit e5dfdd2

Please sign in to comment.