 (histograms/defhistogram [cook-mesos scheduler offer-size-mem])
 (histograms/defhistogram [cook-mesos scheduler offer-size-cpus])
 (histograms/defhistogram [cook-mesos scheduler number-tasks-matched])
+(histograms/defhistogram [cook-mesos-scheduler number-offers-matched])
 (meters/defmeter [cook-mesos scheduler scheduler-offer-matched])
 (meters/defmeter [cook-mesos scheduler handle-resource-offer!-errors])
 (meters/defmeter [cook-mesos scheduler matched-tasks])

    (when (seq running-tasks)
      (log/info "Preparing to reconcile" (count running-tasks) "tasks")
      (doseq [[task-id] running-tasks
              :let [task-ent (d/entity db task-id)
                    hostname (:instance/hostname task-ent)
                    job (:job/_instance task-ent)]]
        (.. fenzo

                   (vec (apply concat upgrade-txns task-txns)))
                (log/info "Launching" (count task-txns) "tasks")
                (log/info "Upgrading" (count (:upgrade-backfill processed-matches)) "tasks from backfilled to proper")
                (log/info "Matched tasks" task-txns)
                ;; This launch-tasks MUST happen after the above transaction in
                ;; order to allow a transaction failure (due to failed preconditions)
                ;; to block the launch
