Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.