Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:

- run: flake8
# To local srcs, we must specifically exclude src
- run: black --check --exclude "/(\.eggs|\.git|_cache|src)/" ./
- run: black --check --exclude "/(\.eggs|\.git|_cache|src|.ve)/" ./
3 changes: 2 additions & 1 deletion datastore/api/dashboard/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def get(self, *args, **kwargs):

ret = quality_data.generate_stats(mode, source_file_set)

cache.set(full_request_uri, ret)
# As cache is cleared on a pipeline run, set without a timeout
cache.set(full_request_uri, ret, timeout=None)

return JsonResponse(ret, safe=False)
7 changes: 7 additions & 0 deletions tools/data_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ else
MAX_TOTAL_RUNS_IN_DB=31
# Based on running this script each day and Keep a few extra for safety
MAX_PACKAGE_AGE_DAYS=`expr $MAX_TOTAL_RUNS_IN_DB + 2`
DASHBOARD_HOST=localhost:8000
### End CONFIG ###
PERFORMANCE_CSV=~/data_run_profile.csv
fi
Expand Down Expand Up @@ -100,6 +101,12 @@ profile_block_stop "REWRITE_QUALITY_DATA"

./datastore/manage.py set_status --what datastore --status IDLE

##
## Warm the dashboard endpoints cache for the DQD
##
curl -s -o /dev/null "https://$DASHBOARD_HOST/api/dashboard/overview?mode=publishers" || true
curl -s -o /dev/null "https://$DASHBOARD_HOST/api/dashboard/overview?mode=grants" || true

##
## Clean up before creating the GrantNav data package.
##
Expand Down
Loading