Skip to content

Commit d04f69c

Browse files
committed
First part of the new judgehost API.
Progress towards #887.
1 parent 414db49 commit d04f69c

24 files changed

+1839
-619
lines changed

gitlab/integration.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,11 @@ while /bin/true; do
166166
curl $CURLOPTS "http://localhost/domjudge/jury/judging-verifier?verify_multiple=1" -o /dev/null
167167
NUMNOTVERIFIED=$(curl $CURLOPTS "http://localhost/domjudge/jury/judging-verifier" | grep "submissions checked" | sed -r 's/^.* ([0-9]+) submissions checked.*$/\1/')
168168
NUMVERIFIED=$(curl $CURLOPTS "http://localhost/domjudge/jury/judging-verifier" | grep "submissions not checked" | sed -r 's/^.* ([0-9]+) submissions not checked.*$/\1/')
169-
# Check whether all submissions have been processed...
170-
if [ $NUMSUBS -eq $((NUMVERIFIED+NUMNOTVERIFIED)) ]; then
171-
break
172-
fi
169+
# TODO: We keep judging (lazily) after all submissions got a final verdict. Perhaps we can re-use the status endpoint to fix this properly?
170+
# # Check whether all submissions have been processed...
171+
# if [ $NUMSUBS -eq $((NUMVERIFIED+NUMNOTVERIFIED)) ]; then
172+
# break
173+
# fi
173174
# ... or something has crashed.
174175
if tail /tmp/judgedaemon.log | grep -q "No submissions in queue"; then
175176
break

0 commit comments

Comments
 (0)