Sha256: b56532aaa0097d404a0cf8754bdab575c81ecaaaa70e4d157b20c5cd47719c8c
Contents?: true
Size: 873 Bytes
Versions: 29
Compression:
Stored size: 873 Bytes
Contents
module CanvasSync module Jobs class SyncContextModuleItemsJob < ReportStarter # Syncs ContextModuleItems # # Starts a report processor for the context modules report # (the proserv_context_module_items_csv report must be enabled) # # @param job_chain [Hash] # @param options [Hash] def perform(job_chain, _options) report_params = if job_chain[:global_options][:canvas_term_id].present? { "parameters[enrollment_term_id]" => job_chain[:global_options][:canvas_term_id] } else {} end super( job_chain, "proserv_context_module_items_csv", report_params, CanvasSync::Processors::ContextModuleItemsProcessor.to_s, {}, ) end end end end
Version data entries
29 entries across 29 versions & 1 rubygems