Skip to content

Commit

Permalink
Merge pull request ansible#3625 from ryanpetrello/iso-forks
Browse files Browse the repository at this point in the history
WIP: specify --forks on isolated health check calls

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
  • Loading branch information
softwarefactory-project-zuul[bot] authored Apr 11, 2019
2 parents fc5322b + 5a4a812 commit 58966d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions awx/main/isolated/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,6 @@ def health_check(self, instance_qs):
- clean up orphaned private files
Performs save on each instance to update its capacity.
'''
# TODO: runner doesn't have a --forks arg
#args.extend(['--forks', str(len(instance_qs))])

try:
private_data_dir = tempfile.mkdtemp(
prefix='awx_iso_heartbeat_',
Expand All @@ -314,6 +311,7 @@ def health_check(self, instance_qs):
instance.hostname for instance in instance_qs
])
self.runner_params['private_data_dir'] = private_data_dir
self.runner_params['forks'] = str(len(instance_qs))
runner_obj = self.run_management_playbook(
'heartbeat_isolated.yml',
private_data_dir
Expand Down

0 comments on commit 58966d7

Please sign in to comment.