aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-06 10:44:05 +0900
committernsfisis <nsfisis@gmail.com>2025-09-06 10:44:05 +0900
commit04b890d202b23fef6803869db98810ad6f3af4c0 (patch)
tree0090949c2e4e84173b5c34a1d0f916104fa7b03b /backend
parent36c32bdbaf65a859d6ce25aefd56df189907453c (diff)
downloadiosdc-japan-2025-albatross-04b890d202b23fef6803869db98810ad6f3af4c0.tar.gz
iosdc-japan-2025-albatross-04b890d202b23fef6803869db98810ad6f3af4c0.tar.zst
iosdc-japan-2025-albatross-04b890d202b23fef6803869db98810ad6f3af4c0.zip
fix(*): support compile_error as worker result
Diffstat (limited to 'backend')
-rw-r--r--backend/api/generated.go51
-rw-r--r--backend/db/query.sql.go1
-rw-r--r--backend/query.sql1
3 files changed, 28 insertions, 25 deletions
diff --git a/backend/api/generated.go b/backend/api/generated.go
index 15f1c17..7d4504d 100644
--- a/backend/api/generated.go
+++ b/backend/api/generated.go
@@ -24,6 +24,7 @@ import (
// Defines values for ExecutionStatus.
const (
+ CompileError ExecutionStatus = "compile_error"
InternalError ExecutionStatus = "internal_error"
None ExecutionStatus = "none"
Running ExecutionStatus = "running"
@@ -1140,31 +1141,31 @@ func (sh *strictHandler) PostLogin(ctx echo.Context) error {
// Base64 encoded, gzipped, json marshaled Swagger object
var swaggerSpec = []string{
- "H4sIAAAAAAAC/+xYW2/UuBf/Kpb/f4mX0JleVLHdp7ILiBVCI1i0WiEUeZIzExfHDrbDdBblu69s5+bE",
- "6aSFslu0fagmts/953PxF5yIvBAcuFb44gsuiCQ5aJD2KwOSgoxJqTMh6V9EU8HNOuX4ot7EEeYkB3yB",
- "L71TEZbwqaQSUnyhZQkRVkkGOTHkel8YAqUl5VtcVREuiM7iLckhpmkrwCx27JvdGYwp17AFiSvDWoIq",
- "BFdgDXpK0jfwqQSlzVciuAZuf5KiYDSxqi+ulLOy4/t/CRt8gf+36Jy1cLt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TT6CBdsJ/eAwamRX4g0pMCfelc/N0ijBRnhyn2i2kIiRdgCasUHoDE",
+ "DIvPrG6QuTID6FgoP24uBNv94senfwwmbo98qtLdVyDkjgPP0CA5DJfwRaUchneIqbd+pVwVQuxIkafM",
+ "1mD51yMM4UHsBohwiwlxjhnHmr8Vm3p3uakgIeL8uuNXnR+hPu0Nv6lAdXe8Lvg8kynF6k9V6DoyaBHx",
+ "pA+neLWQBfVuRzSYQliyUppUU+444PzUO628vfV3/ytw91vg9ovIA8Ghh4WDYvWUOAi3LbPJJihwB+fo",
+ "P5CkVeLMj1Pj3F8sTTmSMLEIbtyq+PUxOFANpw3pl0K0K0pTEQ2O7niSMS5J/f72gGa8Wxo2jl/t31Im",
+ "Ibd6d/khQNuye9L6GLw5HVoja+ZTMLpwMSI1yYNs1XnHBoSbUGv/mDPeh1+5K9+qD+bMmK3S4bvO/uvx",
+ "ySkdeQv6igceWe/RleivaKB3tNqqj9B5fr7Gf0et/w+a4plMQWvQ2BGBIC2qeufmHsDqnQFNPHDKsiz/",
+ "DgAA//9Pz5q5YB8AAA==",
}
// GetSwagger returns the content of the embedded swagger specification file
diff --git a/backend/db/query.sql.go b/backend/db/query.sql.go
index cdf1cc9..05c841d 100644
--- a/backend/db/query.sql.go
+++ b/backend/db/query.sql.go
@@ -35,6 +35,7 @@ SELECT
THEN 'running'
WHEN COUNT(CASE WHEN r.status = 'internal_error' THEN 1 END) > 0 THEN 'internal_error'
WHEN COUNT(CASE WHEN r.status = 'timeout' THEN 1 END) > 0 THEN 'timeout'
+ WHEN COUNT(CASE WHEN r.status = 'compile_error' THEN 1 END) > 0 THEN 'compile_error'
WHEN COUNT(CASE WHEN r.status = 'runtime_error' THEN 1 END) > 0 THEN 'runtime_error'
WHEN COUNT(CASE WHEN r.status = 'wrong_answer' THEN 1 END) > 0 THEN 'wrong_answer'
ELSE 'success'
diff --git a/backend/query.sql b/backend/query.sql
index 2dc3084..9baf593 100644
--- a/backend/query.sql
+++ b/backend/query.sql
@@ -110,6 +110,7 @@ SELECT
THEN 'running'
WHEN COUNT(CASE WHEN r.status = 'internal_error' THEN 1 END) > 0 THEN 'internal_error'
WHEN COUNT(CASE WHEN r.status = 'timeout' THEN 1 END) > 0 THEN 'timeout'
+ WHEN COUNT(CASE WHEN r.status = 'compile_error' THEN 1 END) > 0 THEN 'compile_error'
WHEN COUNT(CASE WHEN r.status = 'runtime_error' THEN 1 END) > 0 THEN 'runtime_error'
WHEN COUNT(CASE WHEN r.status = 'wrong_answer' THEN 1 END) > 0 THEN 'wrong_answer'
ELSE 'success'