mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Do not run task system on secondaries.
This commit is contained in:
parent
50372f9c38
commit
27e8d13790
@ -164,6 +164,10 @@ def rebuild_graph(message):
|
||||
orphaned running tasks, and creating dependencies for new tasks before
|
||||
generating directed edge relationships between those tasks.
|
||||
"""
|
||||
# Sanity check: Only do this on the primary node.
|
||||
if Instance.objects.my_role() == 'secondary':
|
||||
return None
|
||||
|
||||
inspector = inspect()
|
||||
if not hasattr(settings, 'IGNORE_CELERY_INSPECTOR'):
|
||||
active_task_queues = inspector.active()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user