method

enqueue_at

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: Scheduler
enqueue_at(job, timestamp, queue_name:) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activejob/lib/active_job/queue_adapters/async_adapter.rb, line 96
        def enqueue_at(job, timestamp, queue_name))
          delay = timestamp - Time.current.to_f
          if delay > 0
            Concurrent::ScheduledTask.execute(delay, args: [job], executor: executor, &:perform)
          else
            enqueue(job, queue_name: queue_name)
          end
        end
Register or log in to add new notes.