Skip to content

Commit d0b55e5

Browse files
committed
fix
1 parent 6061737 commit d0b55e5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/integration.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,11 @@ jobs:
4646
run: sudo userdel -f -r domjudge-run-0 ; sudo useradd -d /nonexistent -g nogroup -s /bin/false -u 2222 domjudge-run-0
4747
- name: Start judging
4848
run: sudo -u domjudge sh -c 'cd /opt/domjudge/judgehost/ && nohup bin/judgedaemon -n 0 &'
49-
- name: Sleep 5s
50-
run: sleep 5
49+
- name: Monitor judgehost log and stop once all submissions are judged
50+
run: |
51+
tail -f your_log_file.log | while read line; do
52+
echo "$line"
53+
if [[ "$line" == *"No submissions in queue"* ]]; then
54+
break
55+
fi
56+
done

0 commit comments

Comments
 (0)