    Returns {:matches (list of tasks that got matched to the offer)
             :failures (list of unmatched tasks, and why they weren't matched)}"
   [db ^TaskScheduler fenzo considerable offers rebalancer-reservation-atom pool-name]
-  (log/info "In" pool-name "pool, matching offers to considerable jobs"
-            {:count-considerable-jobs (count considerable)
-             :count-offers (count offers)
-             :resource-type->total-considerable (-> considerable
-                                                    jobs->resource-totals
-                                                    format-resource-map)
-             :resource-type->total-offered (-> offers
-                                               offers->resource-totals
-                                               format-resource-map)
-             :user->number-jobs (->> considerable
-                                     (map tools/job-ent->user)
-                                     frequencies)})
   (if (and (-> considerable count zero?)
            (-> offers count pos?)
            (every? :reject-after-match-attempt offers))

                                  (timers/timer (metric-title "handle-resource-offer!-match-job-uuids-duration" pool-name))
                                  (matches->job-uuids matches pool-name))
              first-considerable-job-resources (-> considerable-jobs first tools/job-ent->resources)
              matched-considerable-jobs-head? (contains? matched-job-uuids (-> considerable-jobs first :job/uuid))]

          (fenzo/record-placement-failures! conn failures)


    considerable-jobs))


(defn matches->jobs
  "Given a collection of matches, returns the matched jobs"
  [matches]
  (->> matches
       (mapcat :tasks)
       (map #(-> % .getRequest :job))))


(defn matches->job-uuids
  "Returns the matched job uuids."
  [matches pool-name]
  (let [jobs (matches->jobs matches)
        job-uuids (set (map :job/uuid jobs))]
    (log/debug "In" pool-name "pool, matched jobs:" (count job-uuids))
    (when (seq matches)
