You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by fa...@apache.org on 2024/04/29 06:04:04 UTC

(flink) 03/03: [FLINK-35224][web] Show the JobType on Flink WebUI

This is an automated email from the ASF dual-hosted git repository.

fanrui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 86de622c807413f2a7a1664113e39798f0fed81d
Author: Rui Fan <19...@gmail.com>
AuthorDate: Wed Apr 24 17:52:32 2024 +0800

    [FLINK-35224][web] Show the JobType on Flink WebUI
---
 flink-runtime-web/web-dashboard/src/app/interfaces/job-detail.ts       | 1 +
 .../src/app/pages/job/job-detail/status/job-status.component.html      | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/flink-runtime-web/web-dashboard/src/app/interfaces/job-detail.ts b/flink-runtime-web/web-dashboard/src/app/interfaces/job-detail.ts
index 21f5294b686..4f8fdc89a7c 100644
--- a/flink-runtime-web/web-dashboard/src/app/interfaces/job-detail.ts
+++ b/flink-runtime-web/web-dashboard/src/app/interfaces/job-detail.ts
@@ -47,6 +47,7 @@ export interface JobDetail {
   name: string;
   isStoppable: boolean;
   state: string;
+  'job-type': string;
   'start-time': number;
   'end-time': number;
   duration: number;
diff --git a/flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.html b/flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.html
index d7e65ed3f10..58b0b3090df 100644
--- a/flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.html
+++ b/flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.html
@@ -68,6 +68,9 @@
         <span *ngIf="urlLoading">-</span>
       </ng-template>
     </nz-descriptions-item>
+    <nz-descriptions-item nzTitle="Job Type" *ngIf="jobDetail['job-type'] !== undefined">
+      {{ jobDetail['job-type'] }}
+    </nz-descriptions-item>
     <nz-descriptions-item nzTitle="Start Time">
       {{ jobDetail['start-time'] | date: 'yyyy-MM-dd HH:mm:ss.SSS' }}
     </nz-descriptions-item>