Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Bulk insert many jobs at once for delayed_job.
Add this line to your application's Gemfile:
gem 'delayed_job_bulk'
And then execute:
$ bundle
Build ActiveJob::Base
instances and pass them to Delayed::Job::Bulk.enqueue
:
class SampleJob < ActiveJob::Base
end
active_jobs = 10.times.map { SampleJob.new('sample') }
jobs = Delayed::Job::Bulk.enqueue(active_jobs)
Return value of Delayed::Job::Bulk.enqueue
is an array of Delayed::Job instance:
jobs.size #=> 10
jobs.each do |job|
job.id #=> 12345 (id is set only postgresql)
end
Callbacks related with ActiveJob (before_enqueue
, after_enqueue
and around_enqueue
) are not called for bulk enqueue.
Bug reports and pull requests are welcome on GitHub at https://github.com/kanety/delayed_job_bulk.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that delayed_job_bulk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.