make reconfigure_rsyslog a task

Signed-off-by: jessicamack <jmack@redhat.com>
This commit is contained in:
jessicamack
2023-02-09 16:18:43 -05:00
committed by Hao Liu
parent b29f2f88d0
commit da004da68a
3 changed files with 9 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import urllib.parse as urlparse
from django.conf import settings
from awx.main.utils.reload import supervisor_service_command
from awx.main.dispatch.publish import task
from awx.main.dispatch import pg_bus_conn
@@ -115,6 +116,7 @@ def construct_rsyslog_conf_template(settings=settings):
return tmpl
@task(queue='rsyslog_configurer')
def reconfigure_rsyslog():
tmpl = construct_rsyslog_conf_template()
# Write config to a temp file then move it to preserve atomicity