Skip to content

Commit

Permalink
[fix][zeta] change store finished job info time
Browse files Browse the repository at this point in the history
  • Loading branch information
chaorongzhi committed Sep 1, 2023
1 parent dda3cbe commit 01035e9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public class JobHistoryService {
* finishedJobStateImap key is jobId and value is jobState(json) JobStateData Indicates the
* status of the job, pipeline, and task
*/
// TODO need to limit the amount of storage
private final IMap<Long, JobState> finishedJobStateImap;

private final IMap<Long, JobMetrics> finishedJobMetricsImap;
Expand Down Expand Up @@ -237,7 +238,7 @@ private JobState toJobStateMapper(JobMaster jobMaster, boolean simple) {
}

public void storeJobInfo(long jobId, JobDAGInfo jobInfo) {
finishedJobDAGInfoImap.put(jobId, jobInfo, finishedJobExpireTime, TimeUnit.MINUTES);
finishedJobDAGInfoImap.put(jobId, jobInfo);
}

@AllArgsConstructor
Expand Down

0 comments on commit 01035e9

Please sign in to comment.