We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57530c9 commit 3f94608Copy full SHA for 3f94608
src/routes/api/run.ts
@@ -61,6 +61,7 @@ const handleSuccessForSubmission = function (result: RunResponse) {
61
// send a post request to callback
62
(async () => {
63
// 1. upload the result to s3 and get the url
64
+ const code = result.stderr ? 400 : 200
65
const {url} = await upload(result)
66
67
// 2. save the url in db
@@ -73,7 +74,7 @@ const handleSuccessForSubmission = function (result: RunResponse) {
73
74
})
75
76
// make the callback request
- await axios.post(job.callback, {id: result.id, code: 200, outputs: [url]})
77
+ await axios.post(job.callback, {id: result.id, code, outputs: [url]})
78
})()
79
break;
80
}
0 commit comments