Class: ActiveJob::QueueAdapters::LambdakiqAdapter
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::LambdakiqAdapter
- Defined in:
- lib/lambdakiq/adapter.rb
Instance Method Summary collapse
- #enqueue(job, options = {}) ⇒ Object
- #enqueue_after_transaction_commit? ⇒ Boolean
- #enqueue_at(job, timestamp) ⇒ Object
Instance Method Details
#enqueue(job, options = {}) ⇒ Object
5 6 7 |
# File 'lib/lambdakiq/adapter.rb', line 5 def enqueue(job, = {}) job.lambdakiq_async? ? _enqueue_async(job, ) : _enqueue(job, ) end |
#enqueue_after_transaction_commit? ⇒ Boolean
13 14 15 |
# File 'lib/lambdakiq/adapter.rb', line 13 def enqueue_after_transaction_commit? true end |
#enqueue_at(job, timestamp) ⇒ Object
9 10 11 |
# File 'lib/lambdakiq/adapter.rb', line 9 def enqueue_at(job, ) enqueue job, delay_seconds: delay_seconds() end |