   (:require [clj-http.client :as client]
             [cheshire.core :as json]
             [cmr.ingest.config :as config]
-            [cmr.common.config :as cfg]
+            [cmr.common.config :as cfg :refer [defconfig]]
             [cmr.common.log :as log :refer (debug info warn error)]
             [cmr.common.services.errors :as errors]
             [cmr.common.services.health-helper :as hh]

                delete-url status response)))
    response))

(def ^:const publish-timeout-ms
  "Number of milliseconds to wait for a publish request to be confirmed before considering the
  request timed out."
  60000)

(defn- put-message-on-queue
  "Put an index operation on the message queue. Throws a service unavailable error if the message

                                                   timeout-ms)]
                                    (when-not response
                                      (if (< (- (System/currentTimeMillis) start-time) timeout-ms)
                                        (warn "Attempt to queue message failed. Retrying: " msg)
                                        (errors/throw-service-error
                                          :service-unavailable
                                          (str "All retries exhausted to queue message: " msg))))
