No commit activity in last 3 years
No release in over 3 years
Lightweight Job runner from sidekiq web ui
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.1
>= 2

Runtime

>= 4.0
 Project Readme

SidekiqWebWorkers

sidekiq-web-workers is an extension to Sidekiq that allows you to run jobs from your sidekiq web ui

Gem Version Build Status Test Coverage Maintainability

Installation

Add this line to your application's Gemfile:

gem 'sidekiq-web-workers'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install sidekiq-web-workers

Usage

Once you've installed the gem to add workers that will show up in the web workers section, you'll need to make a file called sidekiq_web_jobs.yml in your application root config folders. If your application is not rails standard or simply wish to change the default location the gem searches for the sidekiq_web_jobs.yml you can do so as follows in your sidekiq.rb initializer.

The yml file should follow yml list syntax ie - WorkerName

Sidekiq::WebWorkers.config_root = <folder you want>

Set a description in your worker class by declaring a class method as follows:

class WorkerClass
  def self.description
    "this is my description"
  end
end    

Sidekiq Web integration

Caveats

Because the parameters are entered through the web ui every param is a String, account for this in your code accordingly. If using the param to query activerecord conversion from string is not necessary as active record does that for you. Complex data structures like hashes and perform methods with named parameters are not supported. Note that named parameters are not supported by sidekiq itself.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/etsenake/sidekiq-web-workers. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the SidekiqWebWorkers project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.