From 7746f290e6734d863b18600975b969de9bd002ee Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Tue, 17 Dec 2024 10:49:37 -0500 Subject: [PATCH] Reset childjobs watcher when kicking it off from a new parent job route (#24668) --- .changelog/24668.txt | 3 +++ ui/app/controllers/jobs/job/index.js | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/24668.txt diff --git a/.changelog/24668.txt b/.changelog/24668.txt new file mode 100644 index 000000000..68bb9efc1 --- /dev/null +++ b/.changelog/24668.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fix an issue where 2 parent jobs would see the others dispatches if it were otherwise empty +``` diff --git a/ui/app/controllers/jobs/job/index.js b/ui/app/controllers/jobs/job/index.js index 220f8a82b..0479c0f7d 100644 --- a/ui/app/controllers/jobs/job/index.js +++ b/ui/app/controllers/jobs/job/index.js @@ -98,6 +98,7 @@ export default class IndexController extends Controller.extend( { id, namespace }, throttle = Ember.testing ? 0 : 2000 ) { + this.childJobs = []; while (true) { let params = { filter: `ParentID == "${id}"`,