Skip to content

Commit

Permalink
feat: touch grader image tgz on job status
Browse files Browse the repository at this point in the history
  • Loading branch information
williams-jack committed Oct 9, 2024
1 parent 480b59a commit 85a0132
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ export const jobStatus = async (req: Request, res: Response) => {
if (!jobQueueStatus) {
return res.json("We could not find the job you're looking for. Please contact a professor or admin.");
}
const { reservation, queuePosition } = jobQueueStatus;
const { reservation, queuePosition, job } = jobQueueStatus;
await touchGraderImageFile(job.config as object as GradingJobConfig);
if (reservationWaitingOnRelease(reservation.releaseAt)) {
return res.json(describeReleaseTiming(reservation.releaseAt));
} else {
Expand Down

0 comments on commit 85a0132

Please sign in to comment.