Unverified Commit a2a01feb authored by yangzehan's avatar yangzehan Committed by GitHub

Fixed that jobInstance was always in the running state (#2840)

* Fixed that jobInstance was always in the running state * Fixed that jobInstance was always in the running state * Fixed that jobInstance was always in the running state
parent 14d35e84
......@@ -122,8 +122,8 @@ public class JobRefreshHandler {
} else {
jobInfoDetail.setJobDataDto(jobDataDto);
FlinkJobDetailInfo flinkJobDetailInfo = jobDataDto.getJob();
jobInstance.setStatus(getJobStatus(jobInfoDetail).getValue());
// The YARN running status is no longer monitored
jobInstance.setStatus(flinkJobDetailInfo.getState());
jobInstance.setDuration(flinkJobDetailInfo.getDuration());
jobInstance.setCreateTime(TimeUtil.toLocalDateTime(flinkJobDetailInfo.getStartTime()));
// if the job is still running the end-time is -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment