minor update to import_ussd script
This commit is contained in:
parent
e017d11770
commit
eb5e612105
@ -1,4 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
echo "Creating seed data..."
|
echo "Creating seed data..."
|
||||||
python create_import_users.py -vv --dir "$IMPORT_DIR" "$ACCOUNT_COUNT"
|
python create_import_users.py -vv --dir "$IMPORT_DIR" "$ACCOUNT_COUNT"
|
||||||
wait $!
|
wait $!
|
||||||
@ -15,9 +18,11 @@ else
|
|||||||
TARGET_TX_COUNT=$((ACCOUNT_COUNT*2))
|
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" &
|
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
|
fi
|
||||||
|
|
||||||
until [ -f ./cic-import-ussd.pid ]
|
until [ -f ./cic-import-ussd.pid ]
|
||||||
do
|
do
|
||||||
echo "Polling for celery worker pid file..."
|
echo "Polling for celery worker pid file..."
|
||||||
|
sleep 1
|
||||||
done
|
done
|
||||||
IMPORT_BALANCE_JOB=$(<cic-import-ussd.pid)
|
IMPORT_BALANCE_JOB=$(<cic-import-ussd.pid)
|
||||||
echo "Start import users job"
|
echo "Start import users job"
|
||||||
|
Loading…
Reference in New Issue
Block a user