-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat/job cancellation orchestrator #56
Conversation
fix: inconsistent key for errors in result
fix: send key with job result to client
Remaining question: how do we deal with jobs that failed to be enqueued post-image build? Should they occur in their own individual transactions, or should we do them all in a single transaction? The latter (current implementation) gives us no way to send a failed enqueuing notification back to the client. |
This feels incomplete somehow. "A Dockerfile failed to build" is not the same thing as "A student submission was graded", and I don't think you should shoehorn a human-readable sentence into something that ought to be machine-parseable data. Surely Docker would give some error feedback as to what didn't build, and surely the SHA hash should be sent back... So this shouldn't be a For the remaining question, I'm not sure I understand. The holding-pen should not release its occupants until the grader is built successfully, and then all the contents should be released together. What "enqueuing notification" do you mean, here? |
New data definition makes sense to me, I agree it could be much more informative. To elaborate a bit more on the latter, I'm getting at the fact that once an image has been built, when we release the jobs to the queue (e.g., the That said, because they are all being released in a single transaction, this feels like a difficult thing to implement. So really this raises my question, is releasing all held jobs in the pen a single transaction, or should each individual release operation be its own? |
You have two functions named
|
Allows image build service to notify client when image build fails. Additionally, swapped local port mappings in migration script and init script to be compatible with the separate postgres instance running for Bottlenose for local development specifically.
feat: build key for responding with build result
Feature/Problem Description
The client (aka, a job's creator) should be notified in the following scenarios:
deleteJob
endpoint.Solution (Changes Made)
GradingJobResult
and the job's key.