Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,16 @@ public IPage<FlinkApplication> page(FlinkApplication appParam, RestRequest reque
.peek(
record -> {
// status of flink job on kubernetes mode had been automatically persisted
// to db
// in time.
// to db in time.
if (record.isKubernetesModeJob()) {
// set duration
String restUrl = k8SFlinkTrackMonitor
.getRemoteRestUrl(k8sWatcherWrapper.toTrackId(record));
record.setFlinkRestUrl(restUrl);
setAppDurationIfNeeded(record, now);
}

// set duration
setAppDurationIfNeeded(record, now);

if (pipeStates.containsKey(record.getId())) {
record.setBuildStatus(pipeStates.get(record.getId()).getCode());
}
Expand Down Expand Up @@ -763,12 +764,12 @@ public FlinkApplication getApp(Long id) {
if (application.isKubernetesModeJob()) {
String restUrl = k8SFlinkTrackMonitor.getRemoteRestUrl(k8sWatcherWrapper.toTrackId(application));
application.setFlinkRestUrl(restUrl);

// set duration
long now = System.currentTimeMillis();
setAppDurationIfNeeded(application, now);
}

// set duration
long now = System.currentTimeMillis();
setAppDurationIfNeeded(application, now);

application.setYarnQueueByHotParams();

return application;
Expand Down
Loading