backburner 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
- ## Released 0.0.1 (Nov 4th 2012)
3
+ ## Released 0.1.1 (Nov 6th 2012)
4
+
5
+ * Fix issue with timed out reserves
6
+
7
+ ## Released 0.1.0 (Nov 4th 2012)
4
8
 
5
9
  * Switch to beaneater as new ruby beanstalkd client
6
10
  * Add support for array of connections in `beanstalk_url`
@@ -1,3 +1,3 @@
1
1
  module Backburner
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -97,10 +97,12 @@ module Backburner
97
97
  job.process
98
98
  self.class.log_job_end(job.name)
99
99
  rescue => e
100
- job.bury
101
100
  self.class.log_error self.class.exception_message(e)
102
- self.class.log_job_end(job.name, 'failed') if @job_begun
103
- handle_error(e, job.name, job.args)
101
+ if job # bury failed job
102
+ job.bury
103
+ self.class.log_job_end(job.name, 'failed') if @job_begun
104
+ handle_error(e, job.name, job.args)
105
+ end
104
106
  end
105
107
 
106
108
  protected
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backburner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-05 00:00:00.000000000 Z
12
+ date: 2012-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaneater