ruby-on-railsruby-on-rails-4sidekiqrails-activejob

Enqueue multiple jobs in ActiveJob


I would like to know if there is a way to enqueue multiple jobs in ActiveJob? Similar to the sidekiq push_bulk.

Sidekiq::Client.push_bulk(sidekiq_items)

I need to enqueue thousands of jobs and it takes too much time to do it one by one.


Solution

  • You cannot. ActiveJob does not have an abstraction for every Sidekiq feature.