mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 17:37:30 -02:30
Implement optional message persistence on callback events
This commit is contained in:
@@ -43,6 +43,7 @@ class CallbackQueueDispatcher(object):
|
|||||||
compression='bzip2',
|
compression='bzip2',
|
||||||
exchange=self.exchange,
|
exchange=self.exchange,
|
||||||
declare=[self.exchange],
|
declare=[self.exchange],
|
||||||
|
delivery_mode="persistent" if settings.PERSISTENT_CALLBACK_MESSAGES else "transient",
|
||||||
routing_key=self.connection_queue)
|
routing_key=self.connection_queue)
|
||||||
return
|
return
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|||||||
@@ -835,6 +835,7 @@ ACTIVITY_STREAM_ENABLED_FOR_INVENTORY_SYNC = False
|
|||||||
# Internal API URL for use by inventory scripts and callback plugin.
|
# Internal API URL for use by inventory scripts and callback plugin.
|
||||||
INTERNAL_API_URL = 'http://127.0.0.1:%s' % DEVSERVER_DEFAULT_PORT
|
INTERNAL_API_URL = 'http://127.0.0.1:%s' % DEVSERVER_DEFAULT_PORT
|
||||||
|
|
||||||
|
PERSISTENT_CALLBACK_MESSAGES = True
|
||||||
USE_CALLBACK_QUEUE = True
|
USE_CALLBACK_QUEUE = True
|
||||||
CALLBACK_QUEUE = "callback_tasks"
|
CALLBACK_QUEUE = "callback_tasks"
|
||||||
FACT_QUEUE = "facts"
|
FACT_QUEUE = "facts"
|
||||||
|
|||||||
Reference in New Issue
Block a user