Commit fe1a536
committed
Create judging_run_output together with judging_run rows
This means that the data state is more consistent.
Also, before the fix bb5d4c8, the judgedaemon
would retry the API call leading here after a 500 response
and then try to recreate the judging_run_output row of the
associated judging_run, which was already created in the first
API call, leading to an error
```
[Nov 23 14:47:57.923] judgedaemon[813572]: warning: Error while executing curl POST to url http://localhost/domjudge/api/judgehosts/add-judging-run/tiger-1/2589899: http status code: 500, request size = 5400, response: array (
'code' => 500,
'message' => 'An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry \'2575471\' for key \'PRIMARY\'',
```1 parent 9215dd5 commit fe1a536
File tree
2 files changed
+9
-3
lines changed- webapp/src
- Controller/API
- Service
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
952 | | - | |
953 | 951 | | |
954 | 952 | | |
955 | 953 | | |
956 | 954 | | |
957 | 955 | | |
| 956 | + | |
| 957 | + | |
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1647 | 1647 | | |
1648 | 1648 | | |
1649 | 1649 | | |
1650 | | - | |
| 1650 | + | |
1651 | 1651 | | |
1652 | 1652 | | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | 1655 | | |
1656 | 1656 | | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
1657 | 1663 | | |
1658 | 1664 | | |
1659 | 1665 | | |
| |||
0 commit comments