sidekiq-unique-jobs 7.1.16 → 7.1.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f0f434849fc23d828254f80ab5c7adeaf0a9bbea684071fd562e0c639fa2ef9
4
- data.tar.gz: 9ac073e7731f2add9f55ecfce31f6a567723026ab3a97b6d4e31c67127839fa8
3
+ metadata.gz: 787e3a8e85324b12df2f67dc04bee3ad3ad26deadc06ce170c9a5c5be62c1047
4
+ data.tar.gz: d280fac7bf32f98bbe8071822463c7184e24339ad756953131d113f2b18710a3
5
5
  SHA512:
6
- metadata.gz: 5ed9e4982703780b97574d29f239f29c8a7d4c544203216a10bd52985381a09934adc0d750178760296a8b19d65811929b4a85cc6d1dd3c772291b7338a891d6
7
- data.tar.gz: 6f874ec9fbffe76683dfa2009ef1be2b460288af4327a4feaffbb5588848b94f10faf73a1e9d916f5b1b4358af47b28ce3927c06ec81291f4002824e5bf5a37d
6
+ metadata.gz: c6549578ab2200965dcbab5e8acbf9e159f5dccce5bd2eb277b6914739e3279195169fd59349d47ae8c2cf9dec2bb7b2116fbceafd17d442b1be6096f9e559fb
7
+ data.tar.gz: e2469b5c19d39d97fb231db49f291a8e5dcd6763f39c28d794b69b43f1551ffc5275075b39a6d11a5eda82409f87f3d4a0d5d0ce2789b4cf90f84c5940c58c2c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## [v7.1.16](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.1.16) (2022-04-02)
4
+
5
+ [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.1.15...v7.1.16)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Abort Ruby Reaper when sidekiq queues are full [\#690](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/690) ([francesmcmullin](https://github.com/francesmcmullin))
10
+ - Quote '3.0' to ensure CI uses Ruby 3.0.x for the 3.0 entry [\#689](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/689) ([petergoldstein](https://github.com/petergoldstein))
11
+
12
+ **Fixed bugs:**
13
+
14
+ - Hotfix: Ensure consistent lock args [\#699](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/699) ([mhenrixon](https://github.com/mhenrixon))
15
+ - Expire older changelog entries first [\#698](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/698) ([mhenrixon](https://github.com/mhenrixon))
16
+ - Fix drift [\#688](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/688) ([mhenrixon](https://github.com/mhenrixon))
17
+
18
+ **Closed issues:**
19
+
20
+ - concurrent-ruby has dropped support for TimerTask timeouts [\#697](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/697)
21
+ - Most recent changelogs are removed first [\#696](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/696)
22
+ - Improve README slightly [\#694](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/694)
23
+ - locksmith.rb:327: NoMethodError: undefined method `+' for nil:NilClass [\#686](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/686)
24
+ - lock\_timeout cannot be nil [\#675](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/675)
25
+ - Skip reaping when queues are too large [\#670](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/670)
26
+
27
+ **Merged pull requests:**
28
+
29
+ - Improve readme [\#695](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/695) ([fwolfst](https://github.com/fwolfst))
30
+ - Add funding\_uri to gemspec [\#693](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/693) ([fwolfst](https://github.com/fwolfst))
31
+ - Fix worker validator [\#685](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/685) ([victorfgs](https://github.com/victorfgs))
32
+
3
33
  ## [v7.1.15](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.1.15) (2022-02-10)
4
34
 
5
35
  [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.1.14...v7.1.15)
@@ -33,10 +33,14 @@ module SidekiqUniqueJobs
33
33
  # Executes in the Sidekiq server process
34
34
  # @yield to the worker class perform method
35
35
  def execute
36
- locksmith.execute do
36
+ executed = locksmith.execute do
37
37
  yield
38
38
  unlock_and_callback
39
39
  end
40
+
41
+ reflect(:execution_failed, item) unless executed
42
+
43
+ nil
40
44
  end
41
45
  end
42
46
  end
@@ -33,7 +33,9 @@ module SidekiqUniqueJobs
33
33
  # Executes in the Sidekiq server process
34
34
  # @yield to the worker class perform method
35
35
  def execute(&block)
36
- locksmith.execute(&block)
36
+ executed = locksmith.execute(&block)
37
+
38
+ reflect(:execution_failed, item) unless executed
37
39
  end
38
40
  end
39
41
  end
@@ -47,7 +47,10 @@ module SidekiqUniqueJobs
47
47
  locksmith.unlock
48
48
  end
49
49
 
50
- call_strategy(origin: :server, &block) unless executed
50
+ unless executed
51
+ reflect(:execution_failed, item)
52
+ call_strategy(origin: :server, &block)
53
+ end
51
54
  end
52
55
  end
53
56
 
@@ -3,5 +3,5 @@
3
3
  module SidekiqUniqueJobs
4
4
  #
5
5
  # @return [String] the current SidekiqUniqueJobs version
6
- VERSION = "7.1.16"
6
+ VERSION = "7.1.17"
7
7
  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.1.16
4
+ version: 7.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-02 00:00:00.000000000 Z
11
+ date: 2022-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brpoplpush-redis_script