Class: CanvasSync::Jobs::SyncUsersJob

Inherits:
ReportStarter show all
Defined in:
lib/canvas_sync/jobs/sync_users_job.rb

Constant Summary collapse

REPORT_PARAMS =
{
  "parameters[users]" => true,
  "parameters[include_deleted]" => true
}.freeze

Instance Method Summary collapse

Methods inherited from CanvasSync::Job

#create_job_log, #report_checker_wait_time

Instance Method Details

#perform(job_chain, _options) ⇒ Object

Starts a provisioning report for just users.

Provisioning reports do not scope users by term, so when we are running provisioning by term we sync users first so we don’t duplicate the work of syncing all users for each term.

Parameters:

  • job_chain (Hash)
  • options (Hash)


17
18
19
20
21
22
23
24
25
# File 'lib/canvas_sync/jobs/sync_users_job.rb', line 17

def perform(job_chain, _options)
  super(
    job_chain,
    "proservices_provisioning_csv",
    REPORT_PARAMS,
    CanvasSync::Processors::ProvisioningReportProcessor.to_s,
    { models: ["users"] },
  )
end