Skip to content

Commit b1990ea

Browse files
authored
Merge pull request #206 from WengLab-InformaticsResearch/update_biolink_mappings_weekly
Run Biolink mapping update weekly instead of monthly
2 parents bf7910d + 956c45a commit b1990ea

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)