MartijnVisser commented on code in PR #29716:
URL: https://github.com/apache/flink/pull/29716#discussion_r4525204401


##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/job-detail.component.ts:
##########
@@ -53,13 +54,21 @@ export class JobDetailComponent implements OnInit, 
OnDestroy {
   ngOnInit(): void {
     this.statusService.refresh$
       .pipe(
+        // A job that is gone never comes back, so stop polling for it.
+        takeWhile(() => !this.notFound),

Review Comment:
   This component is reused when only `jid` changes, so `notFound` stays true. 
Editing the URL from an expired job to a running one kept the notice. Can you 
key polling on `activatedRoute.params`?



##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/job-detail.component.html:
##########
@@ -16,7 +16,12 @@
   ~ limitations under the License.
   -->
 
-<ng-container *ngIf="!isError">
+<nz-alert
+  *ngIf="notFound"
+  nzDescription="This job no longer exists on the JobManager. It may have 
expired from the job store (jobstore.expiration-time) or been lost when the 
JobManager restarted."

Review Comment:
   I think this should match the TaskManager notice (`nzType="warning"`, icon, 
title). The History Server also returns 404 here for a job without an archive, 
where the `jobstore.expiration-time` hint does not fit.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to