Skip to content

Commit

Permalink
Merge 5c1e202 into 42e0849
Browse files Browse the repository at this point in the history
  • Loading branch information
willronchetti committed Jan 15, 2020
2 parents 42e0849 + 5c1e202 commit 339d72a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions chalicelib/check_setup.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"title": "Change in item counts",
"group": "Metadata checks",
"schedule": {
"morning_checks": {
"morning_checks_2": {
"all": {
"kwargs": {"primary": true},
"dependencies": []
Expand Down Expand Up @@ -756,7 +756,7 @@
"title": "Process Download Tracking Items",
"group": "System checks",
"schedule": {
"hourly_checks": {
"ten_min_checks": {
"data": {
"kwargs": {"primary": true},
"dependencies": ["purge_download_tracking_items"]
Expand Down Expand Up @@ -910,7 +910,7 @@
"title": "Purge Download Tracking Items",
"group": "Cleanup checks",
"schedule": {
"hourly_checks": {
"ten_min_checks": {
"data": {
"kwargs": {"primary": true},
"dependencies": []
Expand Down
14 changes: 8 additions & 6 deletions chalicelib/checks/system_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,12 +727,14 @@ def purge_download_tracking_items(connection, **kwargs):

# Don't run if staging deployment is running
# Only need to check if our env is data
if connection.fs_env == 'data':
staging_conn = init_connection('staging')
staging_deploy = CheckResult(staging_conn, 'staging_deployment').get_primary_result()
if staging_deploy['status'] != 'PASS':
check.summary = 'Staging deployment is running - skipping'
return check
# XXX: Removing for now as we find the check can never run without this
# if the staging deploy takes long enough or errors
# if connection.fs_env == 'data':
# staging_conn = init_connection('staging')
# staging_deploy = CheckResult(staging_conn, 'staging_deployment').get_primary_result()
# if staging_deploy['status'] != 'PASS':
# check.summary = 'Staging deployment is running - skipping'
# return check

if get_stage_info()['stage'] != 'prod':
check.summary = check.description = 'This check only runs on Foursight prod'
Expand Down

0 comments on commit 339d72a

Please sign in to comment.