Skip to content

Commit

Permalink
fix first deploy terminal condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerwowen committed Aug 15, 2024
1 parent 2e9c31a commit ab7c328
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ AgentBean genUpdateBeanByReport(PingReportBean report, AgentBean agent) {
updateBean.setStart_date(agent.getStart_date());
}

if (report.getDeployStage() == DeployStage.SERVING_BUILD && updateBean.getFirst_deploy()) {
if (Boolean.TRUE.equals(updateBean.getFirst_deploy())
&& (report.getDeployStage() == DeployStage.SERVING_BUILD
|| updateBean.getState() == AgentState.PAUSED_BY_SYSTEM)) {
// turn off first deploy flag
updateBean.setFirst_deploy(false);
updateBean.setFirst_deploy_time(currentTime);
Expand Down

0 comments on commit ab7c328

Please sign in to comment.