sidekiq-unique-jobs 7.0.0.beta17 → 7.0.0.beta18
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sidekiq-unique-jobs might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/sidekiq_unique_jobs/job.rb +8 -0
- data/lib/sidekiq_unique_jobs/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: eb3027ef2ed3a7a9a35732783f58c8ea1b55052b6c10c6d8de9acb6e44df389a
|
4
|
+
data.tar.gz: ad1baf2e0ad2aa7813109e6cd96aacab888d1bdefb58bcc5b5e5561bbb02404c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c6f06b180fbedd9b17c46e0fac20c7d1729571f830e8c01ea3bc63418cec618d4cfe3c8baa52319923e041960d6504e91488d5f59b41f7b7fa5960635a6142d
|
7
|
+
data.tar.gz: 68e8314bb873315007aa6abe1fb6f8cdf132b76720ef7623329ddb46244dd8f275902aeceac3cdbf19f82dd3cd5b9de8dc6f57856199cbd1748c1c54ca4977f2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v7.0.0.beta17](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.0.0.beta17) (2020-05-20)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.0.0.beta16...v7.0.0.beta17)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Try GitHub actions [\#505](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/505) ([mhenrixon](https://github.com/mhenrixon))
|
10
|
+
|
11
|
+
**Fixed bugs:**
|
12
|
+
|
13
|
+
- Deep stringify worker options to account for hash in on\_conflict [\#506](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/506) ([jasonbekolay](https://github.com/jasonbekolay))
|
14
|
+
|
3
15
|
## [v7.0.0.beta16](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.0.0.beta16) (2020-05-19)
|
4
16
|
|
5
17
|
[Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v6.0.22...v7.0.0.beta16)
|
@@ -10,6 +10,7 @@ module SidekiqUniqueJobs
|
|
10
10
|
# Adds timeout, expiration, lock_args, lock_prefix and lock_digest to the sidekiq job hash
|
11
11
|
# @return [Hash] the job hash
|
12
12
|
def prepare(item)
|
13
|
+
stringify_on_conflict_hash(item)
|
13
14
|
add_lock_timeout(item)
|
14
15
|
add_lock_ttl(item)
|
15
16
|
add_digest(item)
|
@@ -27,6 +28,13 @@ module SidekiqUniqueJobs
|
|
27
28
|
|
28
29
|
private
|
29
30
|
|
31
|
+
def stringify_on_conflict_hash(item)
|
32
|
+
on_conflict = item[ON_CONFLICT]
|
33
|
+
return unless on_conflict.is_a?(Hash)
|
34
|
+
|
35
|
+
item[ON_CONFLICT] = on_conflict.deep_stringify_keys
|
36
|
+
end
|
37
|
+
|
30
38
|
def add_lock_ttl(item)
|
31
39
|
item[LOCK_TTL] = SidekiqUniqueJobs::LockTTL.calculate(item)
|
32
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-unique-jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.0.
|
4
|
+
version: 7.0.0.beta18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikael Henriksson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brpoplpush-redis_script
|