   period has expired. By retrying, routine maintenance such as restarting the RabbitMQ server
   will not result in any ingest errors returned to the provider."
   ([context msg]
-   (put-message-on-queue context msg publish-timeout-ms))
+   (put-message-on-queue context msg (publish-queue-timeout-ms)))
   ([context msg timeout-ms]
    (let [queue-broker (get-in context [:system :queue-broker])
          queue-name (config/index-queue-name)

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

                delete-url status response)))
    response))

(defconfig publish-queue-timeout-ms
  "Number of milliseconds to wait for a publish request to be confirmed before considering the
  request timed out."
  {:default 60000 :type Long})

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