From eb5e6121052a5da34498ac7f970c2883d5d6c8d6 Mon Sep 17 00:00:00 2001 From: Blair Vanderlugt Date: Mon, 30 Aug 2021 11:09:47 -0700 Subject: [PATCH] minor update to import_ussd script --- apps/data-seeding/import_ussd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/data-seeding/import_ussd.sh b/apps/data-seeding/import_ussd.sh index 51726c6..0277348 100644 --- a/apps/data-seeding/import_ussd.sh +++ b/apps/data-seeding/import_ussd.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash + +set -e + echo "Creating seed data..." python create_import_users.py -vv --dir "$IMPORT_DIR" "$ACCOUNT_COUNT" wait $! @@ -15,9 +18,11 @@ else TARGET_TX_COUNT=$((ACCOUNT_COUNT*2)) python cic_ussd/import_balance.py -vv -c "$CONFIG" -p "$ETH_PROVIDER" -r "$CIC_REGISTRY_ADDRESS" --include-balances --token-symbol "$TOKEN_SYMBOL" -y "$KEYSTORE_PATH" "$IMPORT_DIR" & fi + until [ -f ./cic-import-ussd.pid ] do echo "Polling for celery worker pid file..." + sleep 1 done IMPORT_BALANCE_JOB=$(