skiplock 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/skiplock/job.rb +2 -2
- data/lib/skiplock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f70644c57801b881a946ce7c29a043dc33a467566166ee86f487057120230dc
|
4
|
+
data.tar.gz: c32904453b75b6cad95510b50c819ab1777d139baa3a8eca645c4d3b9ca04339
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 499913ac2dddbcaa42f8367ce14a52977df21d8345a4ae422efcb76eb29c5f546a233d68318dabd01536b295bb181833599661e19564b126e7e36c2137ac63b0
|
7
|
+
data.tar.gz: f1f6e5a739b71245a0de18d522a97b2b96c2b630ccfe2195378d605a6e40dfe7109c83f3d8e729ba69e46e3bfc908451f4c20c28cc4dbf5b3796e69e17d2e056
|
data/lib/skiplock/job.rb
CHANGED
@@ -116,7 +116,7 @@ module Skiplock
|
|
116
116
|
self.max_retries = (self.data['options'].key?('max_retries') ? self.data['options']['max_retries'].to_i : max_retries) rescue max_retries
|
117
117
|
self.max_retries = 20 if self.max_retries < 0 || self.max_retries > 20
|
118
118
|
self.purge = (self.data['options'].key?('purge') ? self.data['options']['purge'] : purge_completion) rescue purge_completion
|
119
|
-
job_data = self.
|
119
|
+
job_data = { 'job_class' => self.job_class, 'queue_name' => self.queue_name, 'locale' => self.locale, 'timezone' => self.timezone, 'priority' => self.priority, 'executions' => self.executions, 'exception_executions' => self.exception_executions.dup, 'job_id' => self.id, 'enqueued_at' => self.updated_at, 'arguments' => (self.data['arguments'] || []) }
|
120
120
|
self.executions = self.executions.to_i + 1
|
121
121
|
Thread.current[:skiplock_job] = self
|
122
122
|
start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
@@ -149,4 +149,4 @@ module Skiplock
|
|
149
149
|
self.dispose
|
150
150
|
end
|
151
151
|
end
|
152
|
-
end
|
152
|
+
end
|
data/lib/skiplock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skiplock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tin Vo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|