Module: SwitchmanInstJobs::Delayed::MessageSending

Defined in:
lib/switchman_inst_jobs/delayed/message_sending.rb

Instance Method Summary collapse

Instance Method Details

#delay(sender: nil, synchronous: false, **enqueue_args) ⇒ Object


4
5
6
7
8
9
# File 'lib/switchman_inst_jobs/delayed/message_sending.rb', line 4

def delay(sender: nil, synchronous: false, **enqueue_args)
  sender ||= __calculate_sender_for_delay
  synchronous ||= ::Switchman::DatabaseServer.creating_new_shard

  super
end