@celery_app.task(name='scripts.refresh_box_tokens')
def run_main(days=None, dry_run=True):
    init_app(set_backends=True, routes=False)
    try:
        days = int(days)
    except (ValueError, __HOLE__):
        days = 60 - 7  # refresh tokens that expire this week
    delta = relativedelta(days=days)
    if not dry_run:
        scripts_utils.add_file_logger(logger, __file__)
    main(delta, dry_run=dry_run)
dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/refresh_box_tokens.py/run_main