add no-tasks argument

pull/884/head
Moravčík, Marian 5 years ago
parent 0a9615f1b0
commit 41424e66ab

@ -24,6 +24,8 @@ def get_args():
help="Enable file based updater (default: False)")
parser.add_argument('--dev', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
help="Enable developer mode (default: False)")
parser.add_argument('--no-tasks', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
help="Disable all tasks (default: False)")
return parser.parse_args()

@ -142,6 +142,8 @@ radarr_full_update()
schedule_wanted_search()
schedule_upgrade_subs()
scheduler.start()
if args.no_tasks:
scheduler.pause()
def add_job(job, name=None, max_instances=1, coalesce=True, args=None):

Loading…
Cancel
Save