Sha256: 95b81bb965a35a2d880176681bf7a9493887dfef603b2e2adce8b1db7c692808
Contents?: true
Size: 834 Bytes
Versions: 7
Compression:
Stored size: 834 Bytes
Contents
module CanvasSync module Jobs class SyncSubmissionsJob < ReportStarter # Syncs Submissions # # Starts a report processor for the submission report # (the proserv_student_submissions_csv report must be enabled) # # @param job_chain [Hash] # @param options [Hash] def perform(job_chain, options) report_params = {} report_params["parameters[enrollment_term_id]"] = job_chain[:global_options][:canvas_term_id] if job_chain[:global_options][:canvas_term_id].present? report_params["parameters[include_all]"] = true if options[:include_all] super( job_chain, "proserv_student_submissions_csv", report_params, CanvasSync::Processors::SubmissionsProcessor.to_s, {}, ) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems