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.
MiniScheduler adds recurring jobs to Sidekiq.
Add this line to your application's Gemfile:
gem 'mini_scheduler'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mini_scheduler
In a Rails application, create files needed in your application to configure mini_scheduler:
$ bin/rails g mini_scheduler:install
$ bin/rails db:migrate
An initializer is created named config/initializers/mini_scheduler.rb
which lists all the configuration options.
By default each instance of MiniScheduler will run with a single worker. To amend this behavior:
if Sidekiq.server? && defined?(Rails)
Rails.application.config.after_initialize do
MiniScheduler.start(workers: 5)
end
end
This is useful for cases where you have extremely long running tasks that you would prefer did not starve.
Create jobs with a recurring schedule like this:
class MyHourlyJob
include Sidekiq::Worker
extend MiniScheduler::Schedule
every 1.hour
def execute(args)
# some tasks
end
end
Options for schedules:
To view the scheduled jobs, their history, and the schedule, go to sidekiq's web UI and look for the "Scheduler" tab at the top.
To enable this view in Sidekiq, add require "mini_scheduler/web"
to routes.rb
:
require "sidekiq/web"
require "mini_scheduler/web"
Rails.application.routes.draw do
...
end
If you have questions about using mini_scheduler or found a problem, you can find us at https://meta.discourse.org.
FAQs
Unknown package
We found that mini_scheduler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.