Class: CallRecordingGapsReportWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/call_recording_gaps_report_worker.rb

Overview

Scheduled daily (08:00 America/Chicago): email sysadmin the previous day's
call-recording gaps — connected calls that should have a recording but don't.
See Report::CallRecordingGaps and config/sidekiq_production_schedule.yml.

Instance Method Summary collapse

Instance Method Details

#performObject



11
12
13
14
15
16
17
# File 'app/workers/call_recording_gaps_report_worker.rb', line 11

def perform
  # The 15-min matcher keeps the call-log<->recording links current; refresh
  # once more over a 2-day window so any recordings imported since the last
  # run are matched before we count gaps.
  CallLogEvent.populate_missing_call_records(start_time: 2.days.ago)
  InternalReportsMailer.call_recording_gaps_report.deliver_now
end