mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Implement optional message persistence on callback events
This commit is contained in:
parent
48e75b3e19
commit
4ed054f568
@ -43,6 +43,7 @@ class CallbackQueueDispatcher(object):
|
||||
compression='bzip2',
|
||||
exchange=self.exchange,
|
||||
declare=[self.exchange],
|
||||
delivery_mode="persistent" if settings.PERSISTENT_CALLBACK_MESSAGES else "transient",
|
||||
routing_key=self.connection_queue)
|
||||
return
|
||||
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 = 'http://127.0.0.1:%s' % DEVSERVER_DEFAULT_PORT
|
||||
|
||||
PERSISTENT_CALLBACK_MESSAGES = True
|
||||
USE_CALLBACK_QUEUE = True
|
||||
CALLBACK_QUEUE = "callback_tasks"
|
||||
FACT_QUEUE = "facts"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user