Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create judging_run_output together with judging_run #2852

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

eldering
Copy link
Member

@eldering eldering commented Nov 24, 2024

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\'',

@nickygerritsen nickygerritsen force-pushed the create-judging_run-with-output branch from fe1a536 to beeb7b3 Compare November 24, 2024 14:16
@eldering eldering force-pushed the create-judging_run-with-output branch from beeb7b3 to 9215dd5 Compare November 24, 2024 14:25
@eldering eldering added this pull request to the merge queue Nov 25, 2024
Merged via the queue into main with commit 34b1849 Nov 25, 2024
34 checks passed
@eldering eldering deleted the create-judging_run-with-output branch November 25, 2024 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants