Sidekiq plugin for Redmine
Ruby
Latest commit c65a2e4 Jan 17, 2015 @ogom Merge pull request #9 from jamasi/patch-1
fix wrong link

README.md

Redmine Sidekiq

Background jobs will use the Sidekiq on Redmine. You can Monitoring easily used by Sidekiq plugin.

Features

  • Administrator can use the Sidekiq Web UI from the top menu.
  • Add to autoload_paths of the Plugin /app/workers.
  • IMPORTANT: Anyone trying to use the sidekiq :delay method, use :sidekiq_delay instead because for former has clashes with Redmine safe attributes. There is NO change for :delay_for and :delay_until methods.

Installation

$ git clone https://github.com/ogom/redmine_sidekiq ./plugins/redmine_sidekiq
$ bundle install

Usage

Worker

Add worker classes in /plugins/[your plugin]/app/workers.

class HardWorker
  include Sidekiq::Worker
  def perform(name, count)
    # do something
  end
end

Sidekiq Web UI

It appears in the top menu.

top menu

Example

Example of Sidekiq worker.

./plugins/redmine_sidekiq/workers/sandbox_worker.rb

Sandbox Web UI

Enqueue from the Web UI.

http://[redmine]/sidekiq/sandbox

Enqueue, click the perform_async(*args) of the Jobs.

sandbox

CLI

Enqueue from the command line.

$ script/rails runner 'SandboxWorker.perform_async'

License

  • MIT