Skip to content

Commit

Permalink
test config for no esprit branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Eardley committed Oct 27, 2023
1 parent fb0e9c8 commit 554a037
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ELASTICSEARCH_HOSTS = [{'host': 'localhost', 'port': 9200}] # es7 upgrade machine
ELASTICSEARCH_HOSTS = [{'host': 'localhost', 'port': 9200}]
INDEX_PER_TYPE_SUBSTITUTE = '_doc'
APP_MACHINES_INTERNAL_IPS = ["localhost:5050"]

Expand Down Expand Up @@ -35,12 +35,13 @@ STORE_LOCAL_EXPOSE = True
STORE_LOCAL_DIR = DATA_ROOT + "local_store/main"
STORE_TMP_DIR = DATA_ROOT + "local_store/tmp"

#ELASTIC_SEARCH_SNAPSHOT_REPOSITORY = 'doaj-index-ipt-backups'
ELASTIC_SEARCH_SNAPSHOT_REPOSITORY = 'doaj-test-es-backups'

# Crontab for never running a job - February 31st
CRON_NEVER = {"month": "2", "day": "31", "day_of_week": "*", "hour": "*", "minute": "*"}

# The test server runs fewer huey tasks
# TODO: remove PDD, request_backup and anon_export on test server
HUEY_SCHEDULE = {
"sitemap": {"month": "*", "day": "*", "day_of_week": "*", "hour": "8", "minute": "0"},
"reporting": CRON_NEVER,
Expand All @@ -51,9 +52,9 @@ HUEY_SCHEDULE = {
"request_es_backup": CRON_NEVER,
"check_latest_es_backup": CRON_NEVER,
"prune_es_backups": CRON_NEVER,
"public_data_dump" : CRON_NEVER,
"public_data_dump" : {"month": "*", "day": "*", "day_of_week": "6", "hour": "12", "minute": "0"}, # CRON_NEVER,
"harvest": {"month": "*", "day": "*", "day_of_week": "*", "hour": "5", "minute": "30"},
"anon_export": CRON_NEVER,
"anon_export": {"month": "*", "day": "*", "day_of_week": "1", "hour": "5", "minute": "30"}, # CRON_NEVER,
"old_data_cleanup": {"month": "*", "day": "*", "day_of_week": "3", "hour": "12", "minute": "0"},
"monitor_bgjobs": {"month": "*", "day": "*/6", "day_of_week": "*", "hour": "10", "minute": "0"},
"find_discontinued_soon": {"month": "*", "day": "*", "day_of_week": "*", "hour": "0", "minute": "3"}
Expand Down

0 comments on commit 554a037

Please sign in to comment.