queue_classic 2.0.0rc8 → 2.0.0rc9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/queue_classic/worker.rb +1 -1
  2. metadata +3 -3
@@ -103,12 +103,12 @@ module QC
103
103
  seconds = 2**attempts
104
104
  wait(seconds)
105
105
  log("worker tries again")
106
+ attempts += 1
106
107
  next
107
108
  else
108
109
  log("worker reached max attempts. max=#{@max_attempts}")
109
110
  break
110
111
  end
111
- attempts += 1
112
112
  else
113
113
  log("worker successfully locked job")
114
114
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue_classic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0rc8
4
+ version: 2.0.0rc9
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pg
16
- requirement: &14406640 !ruby/object:Gem::Requirement
16
+ requirement: &20818900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.13.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *14406640
24
+ version_requirements: *20818900
25
25
  description: queue_classic is a queueing library for Ruby apps. (Rails, Sinatra, Etc...)
26
26
  queue_classic features asynchronous job polling, database maintained locks and no
27
27
  ridiculous dependencies. As a matter of fact, queue_classic only requires pg.