Method: Exekutor::Queue#schedule_at

Defined in:
lib/exekutor/queue.rb

#schedule_at(jobs, timestamp) ⇒ Integer

Adds a job to the queue, scheduled to be performed at the indicated time

Parameters:

  • the jobs to enqueue

  • when the job should be performed

Returns:

  • the number of enqueued jobs



30
31
32
# File 'lib/exekutor/queue.rb', line 30

def schedule_at(jobs, timestamp)
  create_records(Array.wrap(jobs), scheduled_at: timestamp)
end