Class: Course::Assessment::Answer::ReducePriorityAutoGradingJob

Inherits:
ApplicationJob
  • Object
show all
Includes:
TrackableJob
Defined in:
app/jobs/course/assessment/answer/reduce_priority_auto_grading_job.rb

Instance Attribute Summary

Attributes included from TrackableJob

#job

Instance Method Summary collapse

Methods included from TrackableJob

#initialize, #job_id=, #perform, #rescue_tracked, #wait

Instance Method Details

#perform_tracked(answer, redirect_to_path = nil) ⇒ Object (protected)

Performs the auto grading.


26
27
28
29
30
31
32
# File 'app/jobs/course/assessment/answer/reduce_priority_auto_grading_job.rb', line 26

def perform_tracked(answer, redirect_to_path = nil)
  ActsAsTenant.without_tenant do
    Course::Assessment::Answer::AutoGradingService.grade(answer)
  end

  redirect_to redirect_to_path
end