Spaces:
Runtime error
Runtime error
Yixin Liu commited on
Commit ·
564624d
1
Parent(s): c586c13
upload
Browse files
config.py
CHANGED
|
@@ -103,6 +103,7 @@ function update_device_idx {
|
|
| 103 |
cnt_longer_sleep=$((cnt_longer_sleep+1))
|
| 104 |
cnt_longer_sleep=$(echo "$cnt_longer_sleep%${#available_devices[@]}" | bc)
|
| 105 |
if [ $cnt_longer_sleep -eq 0 ]; then
|
|
|
|
| 106 |
sleep 60
|
| 107 |
fi
|
| 108 |
|
|
|
|
| 103 |
cnt_longer_sleep=$((cnt_longer_sleep+1))
|
| 104 |
cnt_longer_sleep=$(echo "$cnt_longer_sleep%${#available_devices[@]}" | bc)
|
| 105 |
if [ $cnt_longer_sleep -eq 0 ]; then
|
| 106 |
+
echo "sleep 60 seconds since all devices are fully booked"
|
| 107 |
sleep 60
|
| 108 |
fi
|
| 109 |
|