Skip to content

Commit

Permalink
Improve handling of bid budget snapshots
Browse files Browse the repository at this point in the history
* Ensure that snapshots are generated before the backfill process
* Add `--no-backfill` option to stop backfilling snapshots

Change-Id: If92306066a9bf5275c798a9db261c9bf89dd2851
  • Loading branch information
AVMarkin committed Sep 20, 2024
1 parent 21e497f commit affaab8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/run-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ case $1 in
--legacy)
legacy="y"
;;
--backfill)
backfill="y"
--no-backfill)
backfill="n"
;;
--initial-load)
initial_mode=0
Expand Down Expand Up @@ -420,6 +420,8 @@ run_with_config() {
$(which python3) $(dirname $0)/scripts/conv_lag_adjustment.py \
-c=$config_file \
--ads-config=$ads_config --log=$loglevel --api-version=$API_VERSION
echo -e "${COLOR}===generating bid budget snapshots===${NC}"
gaarf-bq $(dirname $0)/core/bq_queries/snapshots/*.sql -c=$config_file --log=$loglevel
infer_answer_from_config $config_file backfill
if [[ $backfill = "y" ]]; then
echo -e "${COLOR}===backfilling bid budget snapshots===${NC}"
Expand Down

0 comments on commit affaab8

Please sign in to comment.