mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Make minor changes to add needed imports
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
# All Rights Reserved.
|
# All Rights Reserved.
|
||||||
|
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
import random
|
||||||
|
|
||||||
from django.core.validators import MinValueValidator
|
from django.core.validators import MinValueValidator
|
||||||
from django.db import models, connection
|
from django.db import models, connection
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ from awx.main.utils.common import (
|
|||||||
get_cpu_capacity,
|
get_cpu_capacity,
|
||||||
get_system_task_capacity,
|
get_system_task_capacity,
|
||||||
)
|
)
|
||||||
from awx.main.utils.execution_environments import get_default_pod_spec, CONTAINER_ROOT, to_container_path
|
from awx.main.utils.execution_environments import get_default_execution_environment, get_default_pod_spec, CONTAINER_ROOT, to_container_path
|
||||||
from awx.main.utils.ansible import read_ansible_config
|
from awx.main.utils.ansible import read_ansible_config
|
||||||
from awx.main.utils.external_logging import reconfigure_rsyslog
|
from awx.main.utils.external_logging import reconfigure_rsyslog
|
||||||
from awx.main.utils.safe_yaml import safe_dump, sanitize_jinja
|
from awx.main.utils.safe_yaml import safe_dump, sanitize_jinja
|
||||||
@@ -408,6 +408,7 @@ def cleanup_execution_environment_images():
|
|||||||
if process.returncode != 0:
|
if process.returncode != 0:
|
||||||
logger.debug(f"Failed to delete image {image_name}")
|
logger.debug(f"Failed to delete image {image_name}")
|
||||||
|
|
||||||
|
|
||||||
@task(queue=get_local_queuename)
|
@task(queue=get_local_queuename)
|
||||||
def check_heartbeat(node):
|
def check_heartbeat(node):
|
||||||
AWXReceptorJob.check_heartbeat(node)
|
AWXReceptorJob.check_heartbeat(node)
|
||||||
@@ -2835,6 +2836,7 @@ class RunAdHocCommand(BaseTask):
|
|||||||
params['process_isolation'] = False if MODE == 'development' else True
|
params['process_isolation'] = False if MODE == 'development' else True
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
@task(queue=get_local_queuename)
|
@task(queue=get_local_queuename)
|
||||||
class RunSystemJob(BaseTask):
|
class RunSystemJob(BaseTask):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user