mirror of
https://github.com/ansible/awx.git
synced 2026-07-11 08:18:07 -02:30
Add the ability to cleanup management jobs in the cleanup_jobs
management command
This commit is contained in:
@@ -1121,7 +1121,7 @@ class RunSystemJob(BaseTask):
|
||||
if 'days' in json_vars:
|
||||
args.extend(['--days', str(json_vars['days'])])
|
||||
if system_job.job_type == 'cleanup_jobs':
|
||||
args.extend(['--jobs', '--project-updates', '--inventory-updates'])
|
||||
args.extend(['--jobs', '--project-updates', '--inventory-updates', '--management-jobs'])
|
||||
# Keeping this around in case we want to break this out
|
||||
# if 'jobs' in json_vars and json_vars['jobs']:
|
||||
# args.extend(['--jobs'])
|
||||
|
||||
Reference in New Issue
Block a user