Class: SpreeCmCommissioner::WaitingRoom::Admission::CallGuestsChunkJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/spree_cm_commissioner/waiting_room/admission/call_guests_chunk_job.rb

Overview

Dispatched programmatically by CallGuests#claim_and_dispatch, never cron-scheduled. Plain ApplicationJob (not unique-locked): CallGuestsChunk's own read-before-write check is what makes a redelivery safe, including a redelivery after a prior attempt already succeeded, which a uniqueness lock alone wouldn't cover (the lock releases once execution finishes).

Instance Method Summary collapse

Methods included from ApplicationJobDecorator

handle_deserialization_error, prepended

Instance Method Details

#perform(options = {}) ⇒ Object



11
12
13
14
15
16
# File 'app/jobs/spree_cm_commissioner/waiting_room/admission/call_guests_chunk_job.rb', line 11

def perform(options = {})
  SpreeCmCommissioner::WaitingRoom::Admission::CallGuestsChunk.call!(
    guest_refs: options[:guest_refs],
    allow_at: options[:allow_at]
  )
end