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"); }