Add the ability to cleanup management jobs in the cleanup_jobs

management command
This commit is contained in:
Matthew Jones
2014-12-17 16:53:56 -05:00
parent fd6eb66b20
commit 41cabb0899
2 changed files with 26 additions and 5 deletions

View File

@@ -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'])