acidic_job 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/acidic_job.rb +2 -3
- data/lib/acidic_job/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: efbbe68a5d9822e76723f8724743f58b6566706937fa1e939f1fba67ccb8fece
|
4
|
+
data.tar.gz: 48a2cc89d6c9cc0bc13dc95abcce456b5be78bb15ae583e68fd9c72b86ed466a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f095c6a40548b07d4216e8939f52b533778071e4eef2df4090e35f681766a391805a394966d39a3e809e6d1c48094bbb39e768e986401a847882fe8b61ce5ef
|
7
|
+
data.tar.gz: e05b1a3f238492038c40e1a3d51110c52f7062b0143b12d78ac3aace525ea225a13db139f951bc6cf46cc04b14429beaa55c99b0f772c806014b746b88e14897
|
data/Gemfile.lock
CHANGED
data/lib/acidic_job.rb
CHANGED
@@ -23,7 +23,6 @@ module AcidicJob
|
|
23
23
|
|
24
24
|
self.table_name = "acidic_job_keys"
|
25
25
|
|
26
|
-
serialize :job_args, Hash
|
27
26
|
serialize :error_object
|
28
27
|
|
29
28
|
validates :job_name, presence: true
|
@@ -157,7 +156,7 @@ module AcidicJob
|
|
157
156
|
if @key
|
158
157
|
# Programs enqueuing multiple jobs with different parameters but the
|
159
158
|
# same idempotency key is a bug.
|
160
|
-
raise MismatchedIdempotencyKeyAndJobArguments if @key.job_args != job_args.
|
159
|
+
raise MismatchedIdempotencyKeyAndJobArguments if @key.job_args != job_args.deep_stringify_keys.inspect
|
161
160
|
|
162
161
|
# Only acquire a lock if the key is unlocked or its lock has expired
|
163
162
|
# because the original job was long enough ago.
|
@@ -172,7 +171,7 @@ module AcidicJob
|
|
172
171
|
last_run_at: Time.current,
|
173
172
|
recovery_point: first_step,
|
174
173
|
job_name: self.class.name,
|
175
|
-
job_args: job_args.
|
174
|
+
job_args: job_args.inspect
|
176
175
|
)
|
177
176
|
end
|
178
177
|
end
|
data/lib/acidic_job/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acidic_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fractaledmind
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|