async-job 0.9.1 → 0.9.2

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
  SHA256:
3
- metadata.gz: 68846d22341ca9edf95a092dcb92f065282cc2f51a5bf8b2e7849665a557d5ff
4
- data.tar.gz: f625a33575bed354ae7b00995af8091160dc58259089241fe58d5d58209feb29
3
+ metadata.gz: eeb1fabbd3ce8f2806c1b3c3c4fc5c81c0f661e92d49f29a26ed5dac46960ab9
4
+ data.tar.gz: 4187e3a56169deffce40590a9ebda6e075ec66f0450e8808cb5af6bc2ab7ce13
5
5
  SHA512:
6
- metadata.gz: 67d0c64d4245fd92b9b82f95d46d0f17fef1963f38971619c1b750ea41902810fe5a354027ebf7cd217929167fbec0fe084c4dadc0910bfa7bd15a626444abd7
7
- data.tar.gz: 5ee76e100e7232c9d0ca6b5d7fdc42507ffae422879e30d2ba2b48e67e3795e4295911c22daf4e3e28832d4bad77dbf3b35561dcad330a3abba90a878059490e
6
+ metadata.gz: 5d1ef79240e7ee4928675166a2e4ebf608910b559401aefb7eba8088edb47fa50a08b7a784dadb4b23708627c53d1275b2559fb70ed1a2e13387680dde14fbe2
7
+ data.tar.gz: 5bbdefdc4c753d464a30f548f8a1d91f350f54d92248732de0e9c4bca012bda8422c803cea0c4547b708804b354677d18bb5df76c29fc42744a537fcb1f32e94
checksums.yaml.gz.sig CHANGED
Binary file
@@ -81,6 +81,11 @@ module Async
81
81
 
82
82
  protected
83
83
 
84
+ # Dequeue a job from the ready list and process it.
85
+ #
86
+ # If the job fails for any reason, it will be retried.
87
+ #
88
+ # If you do not desire this behavior, you should catch exceptions in the delegate.
84
89
  def dequeue(parent)
85
90
  _id = @processing_list.fetch
86
91
 
@@ -92,7 +97,7 @@ module Async
92
97
  @processing_list.complete(id)
93
98
  rescue => error
94
99
  Console::Event::Failure.for(error).emit(self, "Job failed with error!", id: id)
95
- @processing_list.fail(id)
100
+ @processing_list.retry(id)
96
101
  end
97
102
  ensure
98
103
  @processing_list.retry(_id) if _id
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module Job
8
- VERSION = "0.9.1"
8
+ VERSION = "0.9.2"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file