workers 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -76,6 +76,8 @@ The main benefit is that you get to decide how you want to handle exceptions.
76
76
  t.args # Input arguments (the value of i in this example).
77
77
  t.result # Output value (the result of i * i in this example).
78
78
  t.exception # The exception if one exists.
79
+ t.max_tries # Maximum number of attempts.
80
+ t.tries # Actual number of attempts.
79
81
  end
80
82
 
81
83
  Note that instances of TaskGroup provide a 'synchronize' method.
data/lib/workers/task.rb CHANGED
@@ -6,6 +6,8 @@ module Workers
6
6
  attr_reader :result
7
7
  attr_reader :exception
8
8
  attr_reader :state
9
+ attr_reader :max_tries
10
+ attr_reader :tries
9
11
 
10
12
  def initialize(options = {})
11
13
  @logger = Workers::LogProxy.new(options[:logger])
@@ -1,3 +1,3 @@
1
1
  module Workers
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: