feat(practice): run practice jobs on the code runner with one stored result per run
This commit is contained in:
1 parent
9385b2ddd4
commit
9344228e84
17 files changed
+1010
-35
No files matched your search
@@ -97,11 +97,12 @@ type PracticeJobStore interface {
|
||||
// Requeue puts a try back into the queue; held is false when the job no
|
||||
// longer belongs to the try.
|
||||
Requeue(ctx context.Context, job ClaimedPracticeJob, requeue PracticeRequeue) (held bool, err error)
|
||||
// Complete stores the result of the submission once, finishes the job,
|
||||
// and, for the latest final submission of a pending practice, finishes
|
||||
// the practice, all in one transaction. held is false, with nothing
|
||||
// written, when the job no longer belongs to the try.
|
||||
Complete(ctx context.Context, job ClaimedPracticeJob, result domain.PracticeRunResult) (held bool, err error)
|
||||
// Complete stores the result of the submission once, finishes the job
|
||||
// with the opaque ID of the runner run that produced the result, and, for
|
||||
// the latest final submission of a pending practice, finishes the
|
||||
// practice, all in one transaction. held is false, with nothing written,
|
||||
// when the job no longer belongs to the try.
|
||||
Complete(ctx context.Context, job ClaimedPracticeJob, runnerRunID uuid.UUID, result domain.PracticeRunResult) (held bool, err error)
|
||||
// Fail ends the job as failed with the error class and, for the latest
|
||||
// final submission of a pending practice, marks the practice failed with
|
||||
// sandbox_error. It never stores a verdict.
|
||||
|
||||
Reference in new issue
Block a user