<commit_before># Guard::Sidekiq

[![Build Status](https://secure.travis-ci.org/uken/guard-sidekiq.png)](http://travis-ci.org/uken/guard-sidekiq)

Guard::Sidekiq automatically starts/stops/restarts Sidekiq workers

*forked from [Guard::Resque](https://github.com/guard/guard-resque)*

## Install

Please be sure to have [Guard](http://github.com/guard/guard) installed before continue.

Install the gem:

    gem install guard-sidekiq

Add it to your Gemfile (inside test group):

    gem 'guard-sidekiq'

Add guard definition to your Guardfile by running this command:

    guard init sidekiq

## Usage

Please read [Guard usage doc](http://github.com/guard/guard#readme).

I suggest you put the sidekiq guard definition *before* your test/rspec guard if your tests depend on it
being active.

## Guardfile

    guard 'sidekiq', :environment => 'development' do
      watch(%r{^workers/(.+)\.rb})
    end

## Options

You can customize the sidekiq task via the following options:

* `environment`: the rails environment to run the workers in (defaults to `nil`)
* `queue`: the sidekiq queue to run (defaults to `default`)
* `timeout`: shutdown timeout
* `concurrency`: the number of threads to include (defaults to `1`)
* `verbose`: whether to use verbose logging (defaults to `nil`)
* `stop_signal`: how to kill the process when restarting (defaults to `TERM`)
* `require`: location of rails application with workers or file to require (defaults to `nil`)<commit_msg>Added note<commit_after># Guard::Sidekiq

[![Build Status](https://secure.travis-ci.org/uken/guard-sidekiq.png)](http://travis-ci.org/uken/guard-sidekiq)

Guard::Sidekiq automatically starts/stops/restarts Sidekiq workers

*forked from [Guard::Resque](https://github.com/guard/guard-resque)*

## Install

Please be sure to have [Guard](http://github.com/guard/guard) installed before continue.

Install the gem:

    gem install guard-sidekiq

Add it to your Gemfile (inside test group):

    gem 'guard-sidekiq'

Add guard definition to your Guardfile by running this command:

    guard init sidekiq

## Usage

Please read [Guard usage doc](http://github.com/guard/guard#readme).

I suggest you put the sidekiq guard definition *before* your test/rspec guard if your tests depend on it
being active.

## Guardfile

    guard 'sidekiq', :environment => 'development' do
      watch(%r{^workers/(.+)\.rb})
    end

## Options

You can customize the sidekiq task via the following options:

* `environment`: the rails environment to run the workers in (defaults to `nil`)
* `queue`: the sidekiq queue to run (defaults to `default`). Can supply a list of queues here.
* `timeout`: shutdown timeout
* `concurrency`: the number of threads to include (defaults to `1`)
* `verbose`: whether to use verbose logging (defaults to `nil`)
* `stop_signal`: how to kill the process when restarting (defaults to `TERM`)
* `require`: location of rails application with workers or file to require (defaults to `nil`)
{'fraction_non_alphanumeric': 0.11522911051212938, 'fraction_numerical': 0.0006738544474393531, 'mean_word_length': 4.50834879406308, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2705193', 'n_tokens_mistral': 912, 'n_tokens_neox': 869, 'n_words': 335}