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 +2 -0
- data/lib/workers/task.rb +2 -0
- data/lib/workers/version.rb +1 -1
- metadata +1 -1
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
data/lib/workers/version.rb
CHANGED