Skip to content

Commit 46185ee

Browse files
committed
Run scheduled mapping update on each ITRB environment and on TReK-prod
1 parent 27d5b8c commit 46185ee

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cohd/scheduled_tasks.py

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

17-
# Schedule a task to build the cache every first Saturday of the month (in ITRB-CI and Dev only)
17+
# 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
1819
deployment_env = app.config.get('DEPLOYMENT_ENV', 'dev').lower()
19-
if False:
20+
if deployment_env in ('itrb-ci', 'itrb-test', 'itrb-prod', 'prod'):
2021
scheduler.add_job(func=task_build_cache, trigger='cron', day='1st sat', hour=0)
2122
logging.info(f'Background task scheduled to build Biolink mappings (env: {deployment_env})')
2223
else:

0 commit comments

Comments
 (0)