backend icon indicating copy to clipboard operation
backend copied to clipboard

Refactor: Grading Jobs

Open geshuming opened this issue 5 years ago • 2 comments

Current: A grading job takes in a student's submission, and for each answer forks a task to AWS Lambda for grading. Does not return any status.

Proposed: A grading job is a forked task that takes in a student's submission, and for each answer sends a request to AWS Lambda. When status for each answer is returned, returns an overall status for the grading job.

This helps to ensure the job ran successfully.

geshuming avatar Jul 18 '19 13:07 geshuming

Can I check what you mean by this? Are you suggesting we make the grading job synchronous? I think we purposely made it async via a queue to decouple the architecture to make it more resilient and salable.

jiachen247 avatar Jul 19 '19 01:07 jiachen247

I'm suggesting that the task forking should be done one level higher at the submission level as it is currently done at the answer level

geshuming avatar Jul 19 '19 01:07 geshuming