Skip to content

Commit 933ee41

Browse files
committed
Removing skip_system_checks from cron runs
1 parent f12e6a7 commit 933ee41

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cron/jobs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
parser = argparse.ArgumentParser()
3434
parser.add_argument('type', help='Select the operation mode.', choices=['email', 'run'])
3535
parser.add_argument('--config-override', type=str, help='Override the configuration file with the passed in yml file. Supply full path.')
36-
parser.add_argument('--skip-system-checks', action='store_true', default=False, help='Skip system checks')
3736
parser.add_argument('--full-docker-prune', action='store_true', default=False, help='Prune all images and build caches on the system')
3837
parser.add_argument('--docker-prune', action='store_true', help='Prune all unassociated build caches, networks volumes and stopped containers on the system')
3938

@@ -55,7 +54,7 @@
5554
sys.exit(0)
5655
print(datetime.now().strftime("%Y-%m-%d %H:%M:%S"), 'Processing Job ID#: ', job_main._id)
5756
if args.type == 'run':
58-
job_main.process(skip_system_checks=args.skip_system_checks, docker_prune=args.docker_prune, full_docker_prune=args.full_docker_prune)
57+
job_main.process(docker_prune=args.docker_prune, full_docker_prune=args.full_docker_prune)
5958
elif args.type == 'email':
6059
job_main.process()
6160
print('Successfully processed jobs queue item.')

lib/job/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def check_job_running(self):
2626
return DB().fetch_one(query, params=(self._machine_id, ))
2727

2828
#pylint: disable=arguments-differ
29-
def _process(self, skip_system_checks=False, docker_prune=False, full_docker_prune=False):
29+
def _process(self, docker_prune=False, full_docker_prune=False):
3030

3131
user = User(self._user_id)
3232

0 commit comments

Comments
 (0)