sidekiq-limit_fetch 1.2 → 1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49c36141cff8fd8e6ad664f6a2fbe07af64f21ce
4
- data.tar.gz: bcd3045d1127d419892b6d917363cfaf6462c9f3
3
+ metadata.gz: ef6df5b6610853ca8550db4c675d22e8912dd5fb
4
+ data.tar.gz: 81cd166f3ebafa15e8465d12516096010e966ef3
5
5
  SHA512:
6
- metadata.gz: 014d8dd3ff1dfedbf226c0e5fc58fdb57a34e0329b0ad56f3d607276d39c45317697fde7c13cfeb33efa86c16a14db8df7a30eb3103f70691dd93c183ba15201
7
- data.tar.gz: a6c5d5c6c19a03fb727384dee9ac0119ae018ae0ce517922442b4f45dcc576cb7f9566385af3b1d6a5696f57837b0b3475796c0338f1cd38883bbf85bd5ed18b
6
+ metadata.gz: ba4c3c6d4a353649696d9a3520e8530e51599feb74adf3b159662415aa90aa872cfbff912cfb2d9474b9b1df19e44daa10d37afb7f660954592ff4b5e3d8bab0
7
+ data.tar.gz: ffede9ef755246387d6aad5062f391972f701fc4ca19ad69c1fdc7c83153f258ba881293c29d00a81c1bbeef8e992131e6d079e12dccb70668ab25ba748ff1f6
data/.travis.yml CHANGED
@@ -8,5 +8,4 @@ services:
8
8
  - redis-server
9
9
  matrix:
10
10
  allow_failures:
11
- - rvm: jruby-19mode
12
11
  - rvm: rbx-19mode
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ## Description
2
2
 
3
- Sidekiq strategy to restrict number of workers
4
- which are able to run specified queues simultaneously.
3
+ Sidekiq strategy to support a granular queue control –
4
+ limiting, pausing, blocking, querying.
5
5
 
6
6
  [![Build Status](https://secure.travis-ci.org/brainopia/sidekiq-limit_fetch.png)](http://travis-ci.org/brainopia/sidekiq-limit_fetch)
7
7
  [![Gem Version](https://badge.fury.io/rb/sidekiq-limit_fetch.png)](http://badge.fury.io/rb/sidekiq-limit_fetch)
@@ -5,8 +5,8 @@ module Sidekiq::LimitFetch::Global
5
5
  HEARTBEAT_NAMESPACE = 'heartbeat:'
6
6
  PROCESSOR_NAMESPACE = 'processor:'
7
7
 
8
- HEARTBEAT_TTL = 400
9
- REFRESH_TIMEOUT = 180
8
+ HEARTBEAT_TTL = 90
9
+ REFRESH_TIMEOUT = 60
10
10
 
11
11
  def start!(ttl=HEARTBEAT_TTL, timeout=REFRESH_TIMEOUT)
12
12
  Thread.new do
@@ -16,7 +16,7 @@ module Sidekiq::LimitFetch::Global
16
16
  # - if we'll remove "@uuid ||=" from outside of mutex
17
17
  # then each read will lead to mutex
18
18
  @uuid ||= Thread.exclusive do
19
- @uuid ||= SecureRandom.uuid
19
+ @uuid || SecureRandom.uuid
20
20
  end
21
21
  end
22
22
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'sidekiq-limit_fetch'
3
- gem.version = '1.2'
3
+ gem.version = '1.3'
4
4
  gem.authors = 'brainopia'
5
5
  gem.email = 'brainopia@evilmartians.com'
6
6
  gem.summary = 'Sidekiq strategy to support queue limits'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-limit_fetch
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - brainopia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-10 00:00:00.000000000 Z
11
+ date: 2013-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -119,3 +119,4 @@ test_files:
119
119
  - spec/sidekiq/limit_fetch/semaphore_spec.rb
120
120
  - spec/sidekiq/limit_fetch_spec.rb
121
121
  - spec/spec_helper.rb
122
+ has_rdoc: