Skip to content

Commit

Permalink
Delete unused playbook profiling code
Browse files Browse the repository at this point in the history
We haven't had this feature since pre-AWX 18 (since EEs were introduced) and I cant find any other reference to this.
  • Loading branch information
shanemcd committed Aug 19, 2022
1 parent bf9f1b1 commit d42a857
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions awx/main/tasks/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,15 +428,9 @@ def final_run_hook(self, instance, status, private_data_dir, fact_modification_t
"""
instance.log_lifecycle("finalize_run")
artifact_dir = os.path.join(private_data_dir, 'artifacts', str(self.instance.id))
job_profiling_dir = os.path.join(artifact_dir, 'playbook_profiling')
awx_profiling_dir = '/var/log/tower/playbook_profiling/'
collections_info = os.path.join(artifact_dir, 'collections.json')
ansible_version_file = os.path.join(artifact_dir, 'ansible_version.txt')

if not os.path.exists(awx_profiling_dir):
os.mkdir(awx_profiling_dir)
if os.path.isdir(job_profiling_dir):
shutil.copytree(job_profiling_dir, os.path.join(awx_profiling_dir, str(instance.pk)))
if os.path.exists(collections_info):
with open(collections_info) as ee_json_info:
ee_collections_info = json.loads(ee_json_info.read())
Expand Down

0 comments on commit d42a857

Please sign in to comment.