 (defn list-jobs
   "Queries using the params from ctx and returns the job uuids that were found"
   [db include-custom-executor? ctx]
-  (map :job/uuid (list-jobents db include-custom-executor? ctx)))
+  (map :job/uuid (list-job-ents db include-custom-executor? ctx)))
 
 (defn jobs-list-exist?
   [conn ctx]

    :handle-ok (fn [ctx]
                 (timers/time!
                   (timers/timer ["cook-scheduler" "handler" "list-endpoint-duration"])
                   (let [job-ents (list-jobents db false ctx)]
                     (mapv (partial fetch-job-map-from-entity db) job-ents))))))

;;

(histograms/defhistogram [cook-mesos api list-request-param-limit])
(histograms/defhistogram [cook-mesos api list-response-job-count])

(defn list-job-ents
  "Queries using the params from ctx and returns the jobs that were found as datomic entities."
  [db include-custom-executor? ctx]
  (timers/time!
