class EnqueueUpdatePatientsFromPDSJob
Public Instance Methods
Source
# File app/jobs/enqueue_update_patients_from_pds_job.rb, line 8 def perform scope = Patient.not_deceased patients = scope .where(updated_from_pds_at: nil) .or(scope.where("updated_from_pds_at < ?", 12.hours.ago)) .order("updated_from_pds_at ASC NULLS FIRST") UpdatePatientsFromPDS.call(patients, queue: :pds) end