mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-14 20:11:48 -05:00
16 lines
347 B
Python
16 lines
347 B
Python
# Python
|
|
import logging
|
|
|
|
# AWX
|
|
from awx.main.scheduler import TaskManager
|
|
from awx.main.dispatch.publish import task
|
|
from awx.main.dispatch import get_local_queuename
|
|
|
|
logger = logging.getLogger('awx.main.scheduler')
|
|
|
|
|
|
@task(queue=get_local_queuename)
|
|
def run_task_manager():
|
|
logger.debug("Running task manager.")
|
|
TaskManager().schedule()
|