github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/scenarios/0001_drain_balance.sh (about) 1 #!/bin/bash 2 set -xeuo pipefail 3 4 pkill -f bacalhau || true 5 6 sleep 1 7 8 export PREDICTABLE_API_PORT=1 9 rm -rf /tmp/bacalhau-devstack* ; bacalhau devstack --simulator-mode & 10 11 sleep 3 12 13 export BACALHAU_API_HOST=localhost 14 export BACALHAU_API_PORT=20000 15 16 while true; do bacalhau docker run --concurrency 3 ubuntu echo hello; done 17 18 # Now, dear human, observe with your eyes that the jobs stop working after the 19 # requestor node balance is drained. This demonstrates that the "stop working 20 # when you've run out of money" behavior is working. 21