Set SDB_NOTIFY_HOST for all processes

This commit is contained in:
Shane McDonald
2020-11-17 13:40:45 -05:00
committed by Shane McDonald
parent f1df4c54f8
commit 81f6d36a3a
2 changed files with 6 additions and 9 deletions

View File

@@ -177,15 +177,6 @@ CELERYBEAT_SCHEDULE.update({ # noqa
CLUSTER_HOST_ID = socket.gethostname()
if 'Docker Desktop' in os.getenv('OS', ''):
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.host.internal'
else:
try:
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
except Exception:
pass
AWX_CALLBACK_PROFILE = True
if 'sqlite3' not in DATABASES['default']['ENGINE']: # noqa