Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Rename list-jobents to list-jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Crosby committed Jun 4, 2018
1 parent 9a2d3fa commit 4cbd228
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scheduler/src/cook/mesos/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@
(histograms/defhistogram [cook-mesos api list-request-param-limit])
(histograms/defhistogram [cook-mesos api list-response-job-count])

(defn list-jobents
(defn list-jobs
"Queries using the params from ctx and returns the jobs that were found as datomic entities."
[db include-custom-executor? ctx]
(timers/time!
Expand Down Expand Up @@ -1301,7 +1301,7 @@

(defn jobs-list-exist?
[conn ctx]
[true {::jobs-entities (list-jobents (d/db conn) true ctx)}])
[true {::jobs-entities (list-jobs (d/db conn) true ctx)}])

(defn read-jobs-handler
[conn is-authorized-fn resource-attrs]
Expand Down Expand Up @@ -2296,7 +2296,7 @@
:handle-ok (fn [ctx]
(timers/time!
(timers/timer ["cook-scheduler" "handler" "list-endpoint-duration"])
(let [job-ents (list-jobents db false ctx)]
(let [job-ents (list-jobs db false ctx)]
(mapv (partial fetch-job-map-from-entity db framework-id) job-ents))))))

;;
Expand Down

0 comments on commit 4cbd228

Please sign in to comment.