Sha256: f64ff70c4affc06fbea47935a413974d6e9bbc87e916829d10f01e149be8297a
Contents?: true
Size: 951 Bytes
Versions: 126
Compression:
Stored size: 951 Bytes
Contents
module CanvasSync module Jobs class SyncAccountsJob < ReportStarter # Starts a provisioning report for just accounts. # # Provisioning reports do not scope accounts by term, so when we are # running provisioning by term we sync users first so we don't duplicate # the work of syncing all accounts for each term. # # @param options [Hash] def perform(options) unless options[:root_account] == false acc_params = CanvasSync.get_canvas_sync_client(batch_context).account("self") update_or_create_model(Account, acc_params) end super( "proservices_provisioning_csv", merge_report_params(options, { accounts: true, include_deleted: true, }, term_scope: false), CanvasSync::Processors::ProvisioningReportProcessor.to_s, { models: ["accounts"] }, ) end end end end
Version data entries
126 entries across 126 versions & 1 rubygems