Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutdown: Stop loaders before 2023-06-16 #1566

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions terraform/cron-loaders.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,39 @@ locals {
# njvss = { schedule = "rate(5 minutes)", sources = ["njvss"] }
loaders = {
njvss = {
schedule = "rate(15 minutes)"
schedule = "cron(0/15 0-22 1-15 1-6 ? *)"
env_vars = {
NJVSS_AWS_KEY_ID = var.njvss_aws_key_id
NJVSS_AWS_SECRET_KEY = var.njvss_aws_secret_key
}
},
waDoh = { schedule = "cron(3/30 * * * ? *)" }
cvsSmart = { schedule = "cron(3/15 * * * ? *)" }
walgreensSmart = { schedule = "cron(2/15 * * * ? *)" }
albertsonsScraper = { schedule = "cron(20/30 * * * ? *)" }
hyvee = { schedule = "cron(8/15 * * * ? *)" }
heb = { schedule = "cron(1/15 * * * ? *)" }
waDoh = { schedule = "cron(3/30 0-22 1-15 1-6 ? *)" }
cvsSmart = { schedule = "cron(3/15 0-22 1-15 1-6 ? *)" }
walgreensSmart = { schedule = "cron(2/15 0-22 1-15 1-6 ? *)" }
albertsonsScraper = { schedule = "cron(20/30 0-22 1-15 1-6 ? *)" }
hyvee = { schedule = "cron(8/15 0-22 1-15 1-6 ? *)" }
heb = { schedule = "cron(1/15 0-22 1-15 1-6 ? *)" }
cdcApi = {
schedule = "cron(0 0,12 * * ? *)"
schedule = "cron(0 0,12 1-15 1-6 ? *)"
# CDC updates are often slow; set stale threshold to 3 days.
options = ["--stale-threshold", "172800000"]
}
riteAidScraper = { schedule = "cron(5/30 * * * ? *)" }
riteAidScraper = { schedule = "cron(5/30 0-22 1-15 1-6 ? *)" }
riteAidApi = {
schedule = "cron(0/15 * * * ? *)"
schedule = "cron(0/15 0-22 1-15 1-6 ? *)"
env_vars = {
RITE_AID_URL = var.rite_aid_api_url
RITE_AID_KEY = var.rite_aid_api_key
}
}
prepmod = {
schedule = "cron(9/15 * * * ? *)"
schedule = "cron(9/15 0-22 1-15 1-6 ? *)"
options = ["--states", "AK,WA", "--hide-missing-locations"]
}

# Kroger appears to have shut things off entirely. We just want to run them
# enough to know if they start working again.
krogerSmart = { schedule = "cron(0 1/6 * * ? *)" }
krogerSmart = { schedule = "cron(0 1/6 1-15 1-6 ? *)" }
}
}

Expand Down