Skip to content

[Bug] fix duration column in JobList & JobDetail #4242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
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