Skip to content

Commit 57530c9

Browse files
committed
add "code" in callback to be consistent with failureReponseCallback
1 parent 2c2e0b3 commit 57530c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/routes/api/run.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const handleSuccessForSubmission = function (result: RunResponse) {
7373
})
7474

7575
// make the callback request
76-
await axios.post(job.callback, {id: result.id, outputs: [url]})
76+
await axios.post(job.callback, {id: result.id, code: 200, outputs: [url]})
7777
})()
7878
break;
7979
}
@@ -136,6 +136,7 @@ const getRunPoolElement = function (body: RunRequestBody, res: Response): RunPoo
136136
* HTTP/1.1 200 OK
137137
* {
138138
* "id": 10,
139+
* "code": 200,
139140
* "outputs": ["http://localhost/judge-submissions/file.json"]
140141
* }
141142
*/

0 commit comments

Comments
 (0)