tashkil-scripts / start_all.sh
flokymind's picture
Upload start_all.sh with huggingface_hub
bdd72f0 verified
Raw History Blame Contribute Delete
501 Bytes
#!/bin/sh
# Restart the mishkala tashkeel job on the lab after a handover.
cd /kaggle/working/tashkil || exit 1
for i in 0 1 2 3; do
if ! pgrep -f "shard_mishkala.py $i 4" >/dev/null 2>&1; then
nohup python3 shard_mishkala.py $i 4 >> shard$i.log 2>&1 &
echo "started shard $i"
fi
done
if ! pgrep -f "persist2.py" >/dev/null 2>&1; then
nohup python3 persist2.py >> persist.log 2>&1 &
echo "started persist"
fi
sleep 2
pgrep -af "shard_mishkala.py|persist2.py" | grep -v pgrep | head -8