Skip to content

Commit

Permalink
fix misleading message
Browse files Browse the repository at this point in the history
the variables and wording were both misleading, fix to be more accurate
description in the two different cases where this log may be emitted.
  • Loading branch information
kdelee committed Feb 2, 2022
1 parent 4132c29 commit b8c6414
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions awx/main/scheduler/task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,10 @@ def start_task(self, task, rampart_group, dependent_tasks=None, instance=None):
# at this point we already have control/execution nodes selected for the following cases
else:
task.instance_group = rampart_group
queue_submitted_to = task.execution_node if task.execution_node else rampart_group.name
logger.debug(f'Submitting job {task.log_format} to queue {queue_submitted_to} controlled by {task.controller_node}.')
execution_node_msg = f' and execution node {task.execution_node}' if task.execution_node else ''
logger.debug(
f'Submitting job {task.log_format} controlled by {task.controller_node} to instance group {rampart_group.name}{execution_node_msg}.'
)
with disable_activity_stream():
task.celery_task_id = str(uuid.uuid4())
task.save()
Expand Down

0 comments on commit b8c6414

Please sign in to comment.