sidekiq-unique-jobs 7.0.0.beta25 → 7.0.0.beta26
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 +39 -2
- data/README.md +43 -23
- data/lib/sidekiq_unique_jobs/batch_delete.rb +1 -1
- data/lib/sidekiq_unique_jobs/changelog.rb +1 -1
- data/lib/sidekiq_unique_jobs/cli.rb +1 -1
- data/lib/sidekiq_unique_jobs/connection.rb +1 -1
- data/lib/sidekiq_unique_jobs/constants.rb +1 -1
- data/lib/sidekiq_unique_jobs/digests.rb +1 -1
- data/lib/sidekiq_unique_jobs/exceptions.rb +9 -9
- data/lib/sidekiq_unique_jobs/job.rb +1 -1
- data/lib/sidekiq_unique_jobs/json.rb +1 -1
- data/lib/sidekiq_unique_jobs/key.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock/base_lock.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock/client_validator.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock/server_validator.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock/until_and_while_executing.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock/until_executed.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock/until_executing.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock/until_expired.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock/validator.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock/while_executing.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock/while_executing_reject.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock_args.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock_config.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock_digest.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock_info.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock_timeout.rb +1 -1
- data/lib/sidekiq_unique_jobs/lock_ttl.rb +1 -1
- data/lib/sidekiq_unique_jobs/locksmith.rb +1 -1
- data/lib/sidekiq_unique_jobs/logging.rb +1 -1
- data/lib/sidekiq_unique_jobs/logging/middleware_context.rb +2 -2
- data/lib/sidekiq_unique_jobs/middleware.rb +1 -1
- data/lib/sidekiq_unique_jobs/middleware/client.rb +1 -1
- data/lib/sidekiq_unique_jobs/middleware/server.rb +1 -1
- data/lib/sidekiq_unique_jobs/normalizer.rb +1 -1
- data/lib/sidekiq_unique_jobs/on_conflict.rb +1 -1
- data/lib/sidekiq_unique_jobs/on_conflict/log.rb +1 -1
- data/lib/sidekiq_unique_jobs/on_conflict/null_strategy.rb +1 -1
- data/lib/sidekiq_unique_jobs/on_conflict/raise.rb +1 -1
- data/lib/sidekiq_unique_jobs/on_conflict/reject.rb +1 -1
- data/lib/sidekiq_unique_jobs/on_conflict/replace.rb +1 -1
- data/lib/sidekiq_unique_jobs/on_conflict/reschedule.rb +1 -1
- data/lib/sidekiq_unique_jobs/on_conflict/strategy.rb +1 -1
- data/lib/sidekiq_unique_jobs/options_with_fallback.rb +1 -1
- data/lib/sidekiq_unique_jobs/orphans/lua_reaper.rb +1 -1
- data/lib/sidekiq_unique_jobs/orphans/manager.rb +35 -4
- data/lib/sidekiq_unique_jobs/orphans/null_reaper.rb +24 -0
- data/lib/sidekiq_unique_jobs/orphans/observer.rb +2 -2
- data/lib/sidekiq_unique_jobs/orphans/reaper.rb +5 -1
- data/lib/sidekiq_unique_jobs/orphans/ruby_reaper.rb +1 -1
- data/lib/sidekiq_unique_jobs/profiler.rb +1 -1
- data/lib/sidekiq_unique_jobs/redis.rb +1 -1
- data/lib/sidekiq_unique_jobs/redis/entity.rb +1 -1
- data/lib/sidekiq_unique_jobs/redis/hash.rb +1 -1
- data/lib/sidekiq_unique_jobs/redis/list.rb +1 -1
- data/lib/sidekiq_unique_jobs/redis/set.rb +1 -1
- data/lib/sidekiq_unique_jobs/redis/sorted_set.rb +1 -1
- data/lib/sidekiq_unique_jobs/redis/string.rb +1 -1
- data/lib/sidekiq_unique_jobs/rspec/matchers.rb +2 -2
- data/lib/sidekiq_unique_jobs/rspec/matchers/have_valid_sidekiq_options.rb +2 -2
- data/lib/sidekiq_unique_jobs/script.rb +1 -1
- data/lib/sidekiq_unique_jobs/script/caller.rb +2 -2
- data/lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb +5 -5
- data/lib/sidekiq_unique_jobs/sidekiq_unique_jobs.rb +1 -1
- data/lib/sidekiq_unique_jobs/sidekiq_worker_methods.rb +1 -1
- data/lib/sidekiq_unique_jobs/timing.rb +1 -1
- data/lib/sidekiq_unique_jobs/unlockable.rb +1 -1
- data/lib/sidekiq_unique_jobs/update_version.rb +1 -1
- data/lib/sidekiq_unique_jobs/upgrade_locks.rb +1 -1
- data/lib/sidekiq_unique_jobs/version.rb +1 -1
- data/lib/sidekiq_unique_jobs/version_check.rb +1 -1
- data/lib/sidekiq_unique_jobs/web.rb +1 -1
- data/lib/sidekiq_unique_jobs/web/helpers.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8af7c3fd6c11e4c8f0b1c5cb9978a044f85d1af36515913a645575031e89af2
|
4
|
+
data.tar.gz: b2347d8d8aad7e923777dedcfa8fcea51e78f3eeb07dada968da5d858b34dcc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e879321a4c43dafc44de739bde2fa16b70d8c84d9062c99b99714b50068498619c4a82f87da53c9ccee809de1e9b61a318a04000d796090800633ce304b92135
|
7
|
+
data.tar.gz: c589a5c8dc2bcf304b52e21f44aff31c806a5941037e4db4dfc8f7041c114caac5ada9d898b3e245e4a870b2f585943ca4a4842dca4517ff867b2fa053273940
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,43 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [Unreleased](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/HEAD)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v6.0.25...HEAD)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Update sidekiq-unique-jobs.gemspec [\#542](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/542) ([sergey-alekseev](https://github.com/sergey-alekseev))
|
10
|
+
|
11
|
+
## [v6.0.25](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v6.0.25) (2020-10-26)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.0.0.beta25...v6.0.25)
|
14
|
+
|
15
|
+
**Implemented enhancements:**
|
16
|
+
|
17
|
+
- Support apartment [\#541](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/541) ([mhenrixon](https://github.com/mhenrixon))
|
18
|
+
- Support both instance method and class method [\#528](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/528) ([mhenrixon](https://github.com/mhenrixon))
|
19
|
+
|
20
|
+
## [v7.0.0.beta25](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.0.0.beta25) (2020-10-26)
|
21
|
+
|
22
|
+
[Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.0.0.beta24...v7.0.0.beta25)
|
23
|
+
|
24
|
+
**Implemented enhancements:**
|
25
|
+
|
26
|
+
- Bump rubocop [\#539](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/539) ([mhenrixon](https://github.com/mhenrixon))
|
27
|
+
|
28
|
+
**Fixed bugs:**
|
29
|
+
|
30
|
+
- Ruby reaper not working, active jobs queried incorrectly [\#537](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/537)
|
31
|
+
- Fix RubyReaper active? [\#538](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/538) ([tanner-rutgers](https://github.com/tanner-rutgers))
|
32
|
+
|
33
|
+
**Closed issues:**
|
34
|
+
|
35
|
+
- ConnectionPool::TimeoutError and :until\_executed [\#535](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/535)
|
36
|
+
|
37
|
+
**Merged pull requests:**
|
38
|
+
|
39
|
+
- Support apartment [\#540](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/540) ([mhenrixon](https://github.com/mhenrixon))
|
40
|
+
|
3
41
|
## [v7.0.0.beta24](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.0.0.beta24) (2020-09-27)
|
4
42
|
|
5
43
|
[Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.0.0.beta23...v7.0.0.beta24)
|
@@ -10,7 +48,6 @@
|
|
10
48
|
|
11
49
|
**Closed issues:**
|
12
50
|
|
13
|
-
- while\_executing + raise let non-unique jobs to be executed [\#534](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/534)
|
14
51
|
- Leaked keys in version 5.0.10 [\#519](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/519)
|
15
52
|
|
16
53
|
## [v7.0.0.beta23](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.0.0.beta23) (2020-06-23)
|
@@ -662,6 +699,7 @@
|
|
662
699
|
|
663
700
|
**Merged pull requests:**
|
664
701
|
|
702
|
+
- Add more details about testing uniqueness [\#301](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/301) ([mhenrixon](https://github.com/mhenrixon))
|
665
703
|
- Update README.md [\#300](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/300) ([pirj](https://github.com/pirj))
|
666
704
|
|
667
705
|
## [v6.0.0.rc7](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v6.0.0.rc7) (2018-07-23)
|
@@ -681,7 +719,6 @@
|
|
681
719
|
|
682
720
|
**Merged pull requests:**
|
683
721
|
|
684
|
-
- Add more details about testing uniqueness [\#301](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/301) ([mhenrixon](https://github.com/mhenrixon))
|
685
722
|
- Adds changelog entry [\#299](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/299) ([mhenrixon](https://github.com/mhenrixon))
|
686
723
|
- Fix README [\#298](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/298) ([mhenrixon](https://github.com/mhenrixon))
|
687
724
|
|
data/README.md
CHANGED
@@ -33,15 +33,27 @@
|
|
33
33
|
- [While Executing](#while-executing)
|
34
34
|
- [Custom Locks](#custom-locks)
|
35
35
|
- [Conflict Strategy](#conflict-strategy)
|
36
|
-
- [
|
37
|
-
- [
|
38
|
-
- [
|
39
|
-
- [
|
40
|
-
- [
|
41
|
-
- [
|
42
|
-
- [
|
43
|
-
- [
|
44
|
-
- [
|
36
|
+
- [log](#log)
|
37
|
+
- [raise](#raise)
|
38
|
+
- [reject](#reject)
|
39
|
+
- [replace](#replace)
|
40
|
+
- [Reschedule](#reschedule)
|
41
|
+
- [Custom Strategies](#custom-strategies)
|
42
|
+
- [Usage](#usage)
|
43
|
+
- [Finer Control over Uniqueness](#finer-control-over-uniqueness)
|
44
|
+
- [After Unlock Callback](#after-unlock-callback)
|
45
|
+
- [Logging](#logging)
|
46
|
+
- [Cleanup Dead Locks](#cleanup-dead-locks)
|
47
|
+
- [Other Sidekiq gems](#other-sidekiq-gems)
|
48
|
+
- [sidekiq-global_id](#sidekiq-global_id)
|
49
|
+
- [Debugging](#debugging)
|
50
|
+
- [Sidekiq Web](#sidekiq-web)
|
51
|
+
- [Show Locks](#show-locks)
|
52
|
+
- [Show Lock](#show-lock)
|
53
|
+
- [Communication](#communication)
|
54
|
+
- [Testing](#testing)
|
55
|
+
- [Unique Sidekiq Configuration](#unique-sidekiq-configuration)
|
56
|
+
- [Uniqueness](#uniqueness)
|
45
57
|
- [Contributing](#contributing)
|
46
58
|
- [Contributors](#contributors)
|
47
59
|
|
@@ -106,6 +118,8 @@ See [Locking & Unlocking](https://github.com/mhenrixon/sidekiq-unique-jobs/wiki/
|
|
106
118
|
|
107
119
|
The gem supports a few different configuration options that might be of interest if you run into some weird issues.
|
108
120
|
|
121
|
+
Configure SidekiqUniqueJobs in an initializer or the sidekiq initializer on application startup.
|
122
|
+
|
109
123
|
```ruby
|
110
124
|
SidekiqUniqueJobs.configure do |config|
|
111
125
|
config.debug_lua = true
|
@@ -189,6 +203,14 @@ On the other hand if I increase it to 10 000 orphaned locks per cleanup (`reaper
|
|
189
203
|
|
190
204
|
> BUSY Redis is busy running a script. You can only call SCRIPT KILL or SHUTDOWN NOSAVE. (Redis::CommandError)
|
191
205
|
|
206
|
+
If you want to disable the reaper set it to `:none`, `nil` or `false`. Actually, any value that isn't `:ruby` or `:lua` will disable the reaping.
|
207
|
+
|
208
|
+
```ruby
|
209
|
+
SidekiqUniqueJobs.config.reaper = :none
|
210
|
+
SidekiqUniqueJobs.config.reaper = nil
|
211
|
+
SidekiqUniqueJobs.config.reaper = false
|
212
|
+
```
|
213
|
+
|
192
214
|
### reaper_count
|
193
215
|
|
194
216
|
```ruby
|
@@ -383,11 +405,9 @@ You can refer on all the locks defined in `lib/sidekiq_unique_jobs/lock/*.rb`.
|
|
383
405
|
|
384
406
|
In order to make it available, you should call in your project startup:
|
385
407
|
|
386
|
-
|
387
|
-
# For rails application
|
388
|
-
# config/initializers/sidekiq_unique_jobs.rb
|
389
|
-
# For other projects, whenever you prefer
|
408
|
+
(For rails application config/initializers/sidekiq_unique_jobs.rb or other projects, wherever you prefer)
|
390
409
|
|
410
|
+
```ruby
|
391
411
|
SidekiqUniqueJobs.configure do |config|
|
392
412
|
config.add_lock :my_custom_lock, Locks::MyCustomLock
|
393
413
|
end
|
@@ -408,7 +428,9 @@ The last one is log which can be be used with the lock `UntilExecuted` and `Unti
|
|
408
428
|
It is possible for locks to have different conflict strategy for the client and server. This is useful for `:until_and_while_executing`.
|
409
429
|
|
410
430
|
```ruby
|
411
|
-
sidekiq_options lock: :until_and_while_executing,
|
431
|
+
sidekiq_options lock: :until_and_while_executing,
|
432
|
+
on_conflict: { client: :log, server: :reject }
|
433
|
+
```
|
412
434
|
|
413
435
|
### log
|
414
436
|
|
@@ -474,11 +496,9 @@ You can refer to all the strategies defined in `lib/sidekiq_unique_jobs/on_confl
|
|
474
496
|
|
475
497
|
In order to make it available, you should call in your project startup:
|
476
498
|
|
477
|
-
|
478
|
-
# For rails application
|
479
|
-
# config/initializers/sidekiq_unique_jobs.rb
|
480
|
-
# For other projects, whenever you prefer
|
499
|
+
(For rails application config/initializers/sidekiq_unique_jobs.rb for other projects, wherever you prefer)
|
481
500
|
|
501
|
+
```ruby
|
482
502
|
SidekiqUniqueJobs.configure do |config|
|
483
503
|
config.add_strategy :my_custom_strategy, Strategies::MyCustomStrategy
|
484
504
|
end
|
@@ -578,6 +598,7 @@ class UniqueJobWithFilterMethod
|
|
578
598
|
end
|
579
599
|
...
|
580
600
|
end.
|
601
|
+
```
|
581
602
|
|
582
603
|
### Logging
|
583
604
|
|
@@ -610,7 +631,6 @@ end
|
|
610
631
|
Starting in v5.1, Sidekiq can also fire a global callback when a job dies:
|
611
632
|
|
612
633
|
```ruby
|
613
|
-
# this goes in your initializer
|
614
634
|
Sidekiq.configure_server do |config|
|
615
635
|
config.death_handlers << ->(job, _ex) do
|
616
636
|
digest = job['unique_digest']
|
@@ -648,7 +668,7 @@ There are several ways of removing keys that are stuck. The prefered way is by u
|
|
648
668
|
To use the web extension you need to require it in your routes.
|
649
669
|
|
650
670
|
```ruby
|
651
|
-
#
|
671
|
+
#app/config/routes.rb
|
652
672
|
require 'sidekiq_unique_jobs/web'
|
653
673
|
mount Sidekiq::Web, at: '/sidekiq'
|
654
674
|
```
|
@@ -679,15 +699,15 @@ Since v7 it is possible to perform some simple validation against your workers s
|
|
679
699
|
Let's take a _bad_ worker:
|
680
700
|
|
681
701
|
```ruby
|
682
|
-
#
|
702
|
+
#app/workers/bad_worker.rb
|
683
703
|
class BadWorker
|
684
704
|
sidekiq_options lock: :while_executing, on_conflict: :replace
|
685
705
|
end
|
686
706
|
|
687
|
-
#
|
707
|
+
#spec/workers/bad_worker_spec.rb
|
688
708
|
|
689
709
|
require "sidekiq_unique_jobs/testing"
|
690
|
-
#
|
710
|
+
#OR
|
691
711
|
require "sidekiq_unique_jobs/rspec/matchers"
|
692
712
|
|
693
713
|
RSpec.describe BadWorker do
|
@@ -4,14 +4,14 @@ module SidekiqUniqueJobs
|
|
4
4
|
#
|
5
5
|
# Base class for all exceptions raised from the gem
|
6
6
|
#
|
7
|
-
# @author Mikael Henriksson <mikael@
|
7
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
8
8
|
#
|
9
9
|
class UniqueJobsError < ::RuntimeError
|
10
10
|
end
|
11
11
|
|
12
12
|
# Error raised when a Lua script fails to execute
|
13
13
|
#
|
14
|
-
# @author Mikael Henriksson <mikael@
|
14
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
15
15
|
class Conflict < UniqueJobsError
|
16
16
|
def initialize(item)
|
17
17
|
super("Item with the key: #{item[LOCK_DIGEST]} is already scheduled or processing")
|
@@ -21,7 +21,7 @@ module SidekiqUniqueJobs
|
|
21
21
|
#
|
22
22
|
# Error raised when trying to add a duplicate lock
|
23
23
|
#
|
24
|
-
# @author Mikael Henriksson <mikael@
|
24
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
25
25
|
#
|
26
26
|
class DuplicateLock < UniqueJobsError
|
27
27
|
end
|
@@ -29,7 +29,7 @@ module SidekiqUniqueJobs
|
|
29
29
|
#
|
30
30
|
# Error raised when trying to add a duplicate stragegy
|
31
31
|
#
|
32
|
-
# @author Mikael Henriksson <mikael@
|
32
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
33
33
|
#
|
34
34
|
class DuplicateStrategy < UniqueJobsError
|
35
35
|
end
|
@@ -37,7 +37,7 @@ module SidekiqUniqueJobs
|
|
37
37
|
#
|
38
38
|
# Error raised when an invalid argument is given
|
39
39
|
#
|
40
|
-
# @author Mikael Henriksson <mikael@
|
40
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
41
41
|
#
|
42
42
|
class InvalidArgument < UniqueJobsError
|
43
43
|
end
|
@@ -45,7 +45,7 @@ module SidekiqUniqueJobs
|
|
45
45
|
#
|
46
46
|
# Raised when a workers configuration is invalid
|
47
47
|
#
|
48
|
-
# @author Mikael Henriksson <mikael@
|
48
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
49
49
|
#
|
50
50
|
class InvalidWorker < UniqueJobsError
|
51
51
|
def initialize(lock_config)
|
@@ -58,7 +58,7 @@ module SidekiqUniqueJobs
|
|
58
58
|
|
59
59
|
# Error raised when a Lua script fails to execute
|
60
60
|
#
|
61
|
-
# @author Mikael Henriksson <mikael@
|
61
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
62
62
|
class InvalidUniqueArguments < UniqueJobsError
|
63
63
|
def initialize(options)
|
64
64
|
given = options[:given]
|
@@ -79,7 +79,7 @@ module SidekiqUniqueJobs
|
|
79
79
|
#
|
80
80
|
# Raised when a workers configuration is invalid
|
81
81
|
#
|
82
|
-
# @author Mikael Henriksson <mikael@
|
82
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
83
83
|
#
|
84
84
|
class NotUniqueWorker < UniqueJobsError
|
85
85
|
def initialize(options)
|
@@ -89,7 +89,7 @@ module SidekiqUniqueJobs
|
|
89
89
|
|
90
90
|
# Error raised from {OptionsWithFallback#lock_class}
|
91
91
|
#
|
92
|
-
# @author Mikael Henriksson <mikael@
|
92
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
93
93
|
class UnknownLock < UniqueJobsError
|
94
94
|
end
|
95
95
|
end
|
@@ -4,7 +4,7 @@ module SidekiqUniqueJobs
|
|
4
4
|
#
|
5
5
|
# Class Lock provides access to information about a lock
|
6
6
|
#
|
7
|
-
# @author Mikael Henriksson <mikael@
|
7
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
8
8
|
#
|
9
9
|
class Lock # rubocop:disable Metrics/ClassLength
|
10
10
|
# includes "SidekiqUniqueJobs::Connection"
|
@@ -11,7 +11,7 @@ module SidekiqUniqueJobs
|
|
11
11
|
# See {#lock} for more information about the client.
|
12
12
|
# See {#execute} for more information about the server
|
13
13
|
#
|
14
|
-
# @author Mikael Henriksson <mikael@
|
14
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
15
15
|
class UntilAndWhileExecuting < BaseLock
|
16
16
|
# Executes in the Sidekiq server process
|
17
17
|
# @yield to the worker class perform method
|
@@ -6,7 +6,7 @@ module SidekiqUniqueJobs
|
|
6
6
|
# - Locks on perform_in or perform_async
|
7
7
|
# - Unlocks after yielding to the worker's perform method
|
8
8
|
#
|
9
|
-
# @author Mikael Henriksson <mikael@
|
9
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
10
10
|
class UntilExecuted < BaseLock
|
11
11
|
OK ||= "OK"
|
12
12
|
|
@@ -6,7 +6,7 @@ module SidekiqUniqueJobs
|
|
6
6
|
# - Locks on perform_in or perform_async
|
7
7
|
# - Unlocks before yielding to the worker's perform method
|
8
8
|
#
|
9
|
-
# @author Mikael Henriksson <mikael@
|
9
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
10
10
|
class UntilExecuting < BaseLock
|
11
11
|
# Executes in the Sidekiq server process
|
12
12
|
# @yield to the worker class perform method
|