Skip to content

Commit 956c45a

Browse files
committed
Run Biolink mapping update weekly instead of monthly
1 parent bf7910d commit 956c45a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cohd/scheduled_tasks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ def task_build_cache():
1515
scheduler.add_job(func=BiolinkConceptMapper.prefetch_mappings, trigger='cron', hour=6)
1616

1717
# Schedule a task to build the cache every first Saturday of the month
18-
# Perform in each ITRB environment and on the prod instance on TReK server
1918
deployment_env = app.config.get('DEPLOYMENT_ENV', 'dev').lower()
2019
if deployment_env in ('itrb-ci', 'itrb-test', 'itrb-prod', 'prod'):
21-
scheduler.add_job(func=task_build_cache, trigger='cron', day='1st sat', hour=0)
20+
scheduler.add_job(func=task_build_cache, trigger='cron', day_of_week='sat', hour=0)
2221
logging.info(f'Background task scheduled to build Biolink mappings (env: {deployment_env})')
2322
else:
2423
logging.info(f'Background task NOT scheduled to build Biolink mappings (env: {deployment_env})')

0 commit comments

Comments
 (0)