tasque 0.2.1 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tasque/processor.rb +1 -1
- data/lib/tasque/task.rb +1 -1
- data/lib/tasque/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4aba7131f1ec84903f66f085e00a640fd5d7af267c9bf0670daf1bb40c0c5e0b
|
|
4
|
+
data.tar.gz: 4444b0c4143f77d10afeecfe956f2b204cf1ce6b1c9656c8137aee53e0766762
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21239d09320e7a5f1028aca4f422b510a6ced807521d2c620e598150e30e43129eb59767583f804d0c9bcf17bb88b888679bd8133f08a12655759d33f0e9c128
|
|
7
|
+
data.tar.gz: aa4db0cabc1088a89135705f84ce8395baced4caa1fb33b37e0ea1e5b321c2acf5ed987a75a4ae85557bde1825d2d5c702cc470a94025de9c2b8ad8c8b836d2b
|
data/lib/tasque/processor.rb
CHANGED
|
@@ -39,7 +39,7 @@ module Tasque
|
|
|
39
39
|
has_task = Tasque::Task.fetch(type) do |task|
|
|
40
40
|
@handlers[type.to_sym].call(task)
|
|
41
41
|
end
|
|
42
|
-
rescue ActiveRecord::Deadlocked
|
|
42
|
+
rescue ActiveRecord::Deadlocked, ActiveRecord::LockWaitTimeout, RedisMutex::LockError
|
|
43
43
|
retry
|
|
44
44
|
end while has_task
|
|
45
45
|
end
|
data/lib/tasque/task.rb
CHANGED
|
@@ -76,7 +76,7 @@ module Tasque
|
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
after_transition on: :failure do |task|
|
|
79
|
-
task.update_columns attempts: (task.attempts + 1),
|
|
79
|
+
task.update_columns attempts: (task.attempts + 1), progress: 0
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
after_transition on: :reprocess do |task|
|
data/lib/tasque/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tasque
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yuri Gomozov
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-03-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -153,7 +153,7 @@ files:
|
|
|
153
153
|
homepage: https://github.com/Gropher/tasque
|
|
154
154
|
licenses: []
|
|
155
155
|
metadata: {}
|
|
156
|
-
post_install_message:
|
|
156
|
+
post_install_message:
|
|
157
157
|
rdoc_options: []
|
|
158
158
|
require_paths:
|
|
159
159
|
- lib
|
|
@@ -168,8 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
168
168
|
- !ruby/object:Gem::Version
|
|
169
169
|
version: '0'
|
|
170
170
|
requirements: []
|
|
171
|
-
rubygems_version: 3.
|
|
172
|
-
signing_key:
|
|
171
|
+
rubygems_version: 3.0.9
|
|
172
|
+
signing_key:
|
|
173
173
|
specification_version: 4
|
|
174
174
|
summary: ActiveRecord based task queue
|
|
175
175
|
test_files:
|