ogom / redmine_sidekiq

Sidekiq plugin for Redmine
21 stars 29 forks source link

Redmine Sidekiq

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

Features

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/app/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.

$ bin/rails runner 'SandboxWorker.perform_async'

License