mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
get_local_queuename will return the pod name of the instance now that web and task are in different pods when web container queue a task it will be put into a queue without as task worker to execute the task
15 lines
323 B
Python
15 lines
323 B
Python
# Python
|
|
import logging
|
|
|
|
# AWX
|
|
from awx.main.analytics.subsystem_metrics import Metrics
|
|
from awx.main.dispatch.publish import task
|
|
from awx.main.dispatch import get_task_queuename
|
|
|
|
logger = logging.getLogger('awx.main.scheduler')
|
|
|
|
|
|
@task(queue=get_task_queuename)
|
|
def send_subsystem_metrics():
|
|
Metrics().send_metrics()
|