mvd001/cyberset / scripts /graphs /run_workers.sh
mvd001's picture
download
raw
370 Bytes
#!/usr/bin/env bash
# usage: run_workers.sh <n_workers> <xmx> [extra worker args] (resumable; touch work/graphs/STOP to drain)
cd "$(dirname "$0")/../.."
N=$1; XMX=$2; shift 2
for k in $(seq 0 $((N-1))); do
nohup .venv/bin/python scripts/graphs/graph_worker.py --worker $k --xmx $XMX "$@" >> logs/graphs/worker_$k.log 2>&1 &
echo "worker $k pid $!"; sleep 20
done

Xet Storage Details

Size:
370 Bytes
·
Xet hash:
bc5723e2cac117b1c8bf4c31e48582dc5c0cf9ba92b36d68f3cbb55d1e036c2c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.