
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Delayed Job Backend adapter for ElasticSearch.
The gem uses the 'elasticsearch-transport' and 'elasticsearch-api' as dependencies.
It has no other dependencies, and should be easy to integrate into any ruby based project that uses elasticsearch in any form.
Add this line to your application's Gemfile:
gem 'delayed_job_es'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install delayed_job_es
Create a Job Class in the app/jobs folder :
class BackgroundJob < ActiveJob::Base
queue_as :default
## Specify the queue adapter as delayed_job_es
self.queue_adapter = :delayed_job
self.logger = Logger.new(nil) if Rails.env.test?
rescue_from(StandardError) do |exception|
puts exception.message
puts exception.backtrace.join("\n")
end
def perform(args)
## process job here.
end
end
Create required ES Indexes:
# in the rails console, (you only need to do this once)
DelayedJob::Backend::Es::Job.create_indices
Open a terminal window, navigate to your project and run :
$ bundle exec rake jobs:work
This will run a job daemon(standard DelayedJob).
To queue a job, from anywhere using the job class above run (you can try this in the rails console, in another window):
BackgroundJob.perform_later({"hello" => "world"})
If you look in the jobs daemon window, you will see the job getting processed.
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/delayed_job_es. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the DelayedJobEs project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that delayed_job_es demonstrated a not healthy version release cadence and project activity because the last version was released 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.