From 4d6b5afdaa0dde60bbe0d5e8ff1131cfa0cc958c Mon Sep 17 00:00:00 2001 From: wcgunter Date: Thu, 9 May 2024 15:14:17 -0400 Subject: [PATCH] Potential change? --- .../src/main/java/jpl/cws/core/db/SchedulerDbService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cws-core/src/main/java/jpl/cws/core/db/SchedulerDbService.java b/cws-core/src/main/java/jpl/cws/core/db/SchedulerDbService.java index 98db043f..c53ea0e3 100644 --- a/cws-core/src/main/java/jpl/cws/core/db/SchedulerDbService.java +++ b/cws-core/src/main/java/jpl/cws/core/db/SchedulerDbService.java @@ -604,10 +604,8 @@ public int getNumUpWorkers() { */ public List> getWorkerNumRunningProcs() { return jdbcTemplate.queryForList( - "SELECT cws_worker.id, COUNT(*) AS cnt FROM cws_proc_inst_status," + - "cws_worker,cws_sched_worker_proc_inst WHERE cws_worker.id = cws_sched_worker_proc_inst.claimed_by_worker" + - " AND cws_sched_worker_proc_inst.proc_inst_id = cws_proc_inst_status.proc_inst_id AND " + - "cws_proc_inst_status.status NOT LIKE '%complete%' GROUP BY cws_worker.id"); + "SELECT cws_worker.id, COUNT(*) AS cnt FROM cws_proc_inst_status,cws_worker " + + "WHERE cws_proc_inst_status.status NOT LIKE '%complete%' GROUP BY cws_worker.id"); }