From 94e2618059218ef6ffb76a11b7fe07ebd8411ef2 Mon Sep 17 00:00:00 2001
From: Joe Rafaniello <jrafanie@users.noreply.github.com>
Date: Fri, 23 Mar 2018 11:57:25 -0400
Subject: [PATCH] Merge pull request #17187 from tumido/fix_refresh_race_cond

Fix RefreshWorker dequeue race condition
(cherry picked from commit 4d6b447f3520fe0ffc5b9cfc6c874c006acaec72)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1560699
---
 config/settings.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config/settings.yml b/config/settings.yml
index ccf743be596..ca60f08ef89 100644
--- a/config/settings.yml
+++ b/config/settings.yml
@@ -1175,6 +1175,7 @@
           :poll_method: :normal
           :queue_timeout: 120.minutes
           :restart_interval: 2.hours
+          :dequeue_method: :sql
         :ems_refresh_worker_ansible_tower_automation: {}
         :ems_refresh_worker_embedded_ansible_automation: {}
         :ems_refresh_worker_foreman_configuration: {}