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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c119463794e6ac523fb385c7925181bf069d6cf37996fe4a2dacf101e6faa6c8
4
- data.tar.gz: 0aee11414e05623185781b1a5779a9b7393474fde176ec6d9ee42151cd5453a4
3
+ metadata.gz: 3f70644c57801b881a946ce7c29a043dc33a467566166ee86f487057120230dc
4
+ data.tar.gz: c32904453b75b6cad95510b50c819ab1777d139baa3a8eca645c4d3b9ca04339
5
5
  SHA512:
6
- metadata.gz: 8ba80ed8e0bd4bf185ffa2e65f88d7f6a1f32e1124e75e82dac50ba1fecc12167687ffab2e5f8f9e7148ba24c000ae6114c04c67e175793c99a45db17dde8b0c
7
- data.tar.gz: 0adb1907dd1e0c8338c298d32f6fe3e576f755a38962beed186c56ca4375882cbbf20646a7efd2cf37145588d7acf6dd4855156f418de9732254ec5b86704e9a
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.attributes.slice('job_class', 'queue_name', 'locale', 'timezone', 'priority', 'executions', 'exception_executions').merge('job_id' => self.id, 'enqueued_at' => self.updated_at, 'arguments' => (self.data['arguments'] || []))
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
@@ -1,4 +1,4 @@
1
1
  module Skiplock
2
- VERSION = Version = '1.1.1'
2
+ VERSION = Version = '1.1.2'
3
3
  end
4
4
 
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.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-02 00:00:00.000000000 Z
11
+ date: 2022-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob