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.

Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -2
  3. data/README.md +43 -23
  4. data/lib/sidekiq_unique_jobs/batch_delete.rb +1 -1
  5. data/lib/sidekiq_unique_jobs/changelog.rb +1 -1
  6. data/lib/sidekiq_unique_jobs/cli.rb +1 -1
  7. data/lib/sidekiq_unique_jobs/connection.rb +1 -1
  8. data/lib/sidekiq_unique_jobs/constants.rb +1 -1
  9. data/lib/sidekiq_unique_jobs/digests.rb +1 -1
  10. data/lib/sidekiq_unique_jobs/exceptions.rb +9 -9
  11. data/lib/sidekiq_unique_jobs/job.rb +1 -1
  12. data/lib/sidekiq_unique_jobs/json.rb +1 -1
  13. data/lib/sidekiq_unique_jobs/key.rb +1 -1
  14. data/lib/sidekiq_unique_jobs/lock.rb +1 -1
  15. data/lib/sidekiq_unique_jobs/lock/base_lock.rb +1 -1
  16. data/lib/sidekiq_unique_jobs/lock/client_validator.rb +1 -1
  17. data/lib/sidekiq_unique_jobs/lock/server_validator.rb +1 -1
  18. data/lib/sidekiq_unique_jobs/lock/until_and_while_executing.rb +1 -1
  19. data/lib/sidekiq_unique_jobs/lock/until_executed.rb +1 -1
  20. data/lib/sidekiq_unique_jobs/lock/until_executing.rb +1 -1
  21. data/lib/sidekiq_unique_jobs/lock/until_expired.rb +1 -1
  22. data/lib/sidekiq_unique_jobs/lock/validator.rb +1 -1
  23. data/lib/sidekiq_unique_jobs/lock/while_executing.rb +1 -1
  24. data/lib/sidekiq_unique_jobs/lock/while_executing_reject.rb +1 -1
  25. data/lib/sidekiq_unique_jobs/lock_args.rb +1 -1
  26. data/lib/sidekiq_unique_jobs/lock_config.rb +1 -1
  27. data/lib/sidekiq_unique_jobs/lock_digest.rb +1 -1
  28. data/lib/sidekiq_unique_jobs/lock_info.rb +1 -1
  29. data/lib/sidekiq_unique_jobs/lock_timeout.rb +1 -1
  30. data/lib/sidekiq_unique_jobs/lock_ttl.rb +1 -1
  31. data/lib/sidekiq_unique_jobs/locksmith.rb +1 -1
  32. data/lib/sidekiq_unique_jobs/logging.rb +1 -1
  33. data/lib/sidekiq_unique_jobs/logging/middleware_context.rb +2 -2
  34. data/lib/sidekiq_unique_jobs/middleware.rb +1 -1
  35. data/lib/sidekiq_unique_jobs/middleware/client.rb +1 -1
  36. data/lib/sidekiq_unique_jobs/middleware/server.rb +1 -1
  37. data/lib/sidekiq_unique_jobs/normalizer.rb +1 -1
  38. data/lib/sidekiq_unique_jobs/on_conflict.rb +1 -1
  39. data/lib/sidekiq_unique_jobs/on_conflict/log.rb +1 -1
  40. data/lib/sidekiq_unique_jobs/on_conflict/null_strategy.rb +1 -1
  41. data/lib/sidekiq_unique_jobs/on_conflict/raise.rb +1 -1
  42. data/lib/sidekiq_unique_jobs/on_conflict/reject.rb +1 -1
  43. data/lib/sidekiq_unique_jobs/on_conflict/replace.rb +1 -1
  44. data/lib/sidekiq_unique_jobs/on_conflict/reschedule.rb +1 -1
  45. data/lib/sidekiq_unique_jobs/on_conflict/strategy.rb +1 -1
  46. data/lib/sidekiq_unique_jobs/options_with_fallback.rb +1 -1
  47. data/lib/sidekiq_unique_jobs/orphans/lua_reaper.rb +1 -1
  48. data/lib/sidekiq_unique_jobs/orphans/manager.rb +35 -4
  49. data/lib/sidekiq_unique_jobs/orphans/null_reaper.rb +24 -0
  50. data/lib/sidekiq_unique_jobs/orphans/observer.rb +2 -2
  51. data/lib/sidekiq_unique_jobs/orphans/reaper.rb +5 -1
  52. data/lib/sidekiq_unique_jobs/orphans/ruby_reaper.rb +1 -1
  53. data/lib/sidekiq_unique_jobs/profiler.rb +1 -1
  54. data/lib/sidekiq_unique_jobs/redis.rb +1 -1
  55. data/lib/sidekiq_unique_jobs/redis/entity.rb +1 -1
  56. data/lib/sidekiq_unique_jobs/redis/hash.rb +1 -1
  57. data/lib/sidekiq_unique_jobs/redis/list.rb +1 -1
  58. data/lib/sidekiq_unique_jobs/redis/set.rb +1 -1
  59. data/lib/sidekiq_unique_jobs/redis/sorted_set.rb +1 -1
  60. data/lib/sidekiq_unique_jobs/redis/string.rb +1 -1
  61. data/lib/sidekiq_unique_jobs/rspec/matchers.rb +2 -2
  62. data/lib/sidekiq_unique_jobs/rspec/matchers/have_valid_sidekiq_options.rb +2 -2
  63. data/lib/sidekiq_unique_jobs/script.rb +1 -1
  64. data/lib/sidekiq_unique_jobs/script/caller.rb +2 -2
  65. data/lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb +5 -5
  66. data/lib/sidekiq_unique_jobs/sidekiq_unique_jobs.rb +1 -1
  67. data/lib/sidekiq_unique_jobs/sidekiq_worker_methods.rb +1 -1
  68. data/lib/sidekiq_unique_jobs/timing.rb +1 -1
  69. data/lib/sidekiq_unique_jobs/unlockable.rb +1 -1
  70. data/lib/sidekiq_unique_jobs/update_version.rb +1 -1
  71. data/lib/sidekiq_unique_jobs/upgrade_locks.rb +1 -1
  72. data/lib/sidekiq_unique_jobs/version.rb +1 -1
  73. data/lib/sidekiq_unique_jobs/version_check.rb +1 -1
  74. data/lib/sidekiq_unique_jobs/web.rb +1 -1
  75. data/lib/sidekiq_unique_jobs/web/helpers.rb +1 -1
  76. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 616316456566100190d005a5173bd3e9aa0f5558182d9e5e9965ecffde4aea65
4
- data.tar.gz: bc35728df95960b932af55737c358df8d3a18a0d5c9798d944f0f386113a35d0
3
+ metadata.gz: b8af7c3fd6c11e4c8f0b1c5cb9978a044f85d1af36515913a645575031e89af2
4
+ data.tar.gz: b2347d8d8aad7e923777dedcfa8fcea51e78f3eeb07dada968da5d858b34dcc6
5
5
  SHA512:
6
- metadata.gz: 9d3a8b690a6599d7ad0d4a9dc249aa32ab193efb41fcb4ab37825f2921376af863e8949f51341e1fccb97628213d4aa0dd215d6442c030771593b7ad9f99cc2e
7
- data.tar.gz: 2a25c29067a417bdc244dfecfc9777d8c195edc98ede3367be7a93d364191f30cdd012056fe70570739e45122a9ba6d7b2a8247b5ea414b238aa7eaa1d561d33
6
+ metadata.gz: e879321a4c43dafc44de739bde2fa16b70d8c84d9062c99b99714b50068498619c4a82f87da53c9ccee809de1e9b61a318a04000d796090800633ce304b92135
7
+ data.tar.gz: c589a5c8dc2bcf304b52e21f44aff31c806a5941037e4db4dfc8f7041c114caac5ada9d898b3e245e4a870b2f585943ca4a4842dca4517ff867b2fa053273940
@@ -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
- - [lib/strategies/my_custom_strategy.rb](#libstrategiesmy_custom_strategyrb)
37
- - [For rails application](#for-rails-application)
38
- - [config/initializers/sidekiq_unique_jobs.rb](#configinitializerssidekiq_unique_jobsrb)
39
- - [For other projects, whenever you prefer](#for-other-projects-whenever-you-prefer)
40
- - [this goes in your initializer](#this-goes-in-your-initializer)
41
- - [app/config/routes.rb](#appconfigroutesrb)
42
- - [app/workers/bad_worker.rb](#appworkersbad_workerrb)
43
- - [spec/workers/bad_worker_spec.rb](#specworkersbad_worker_specrb)
44
- - [OR](#or)
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
- ```ruby
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, on_conflict: { client: :log, server: :reject }
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
- ```ruby
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
- # app/config/routes.rb
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
- # app/workers/bad_worker.rb
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
- # spec/workers/bad_worker_spec.rb
707
+ #spec/workers/bad_worker_spec.rb
688
708
 
689
709
  require "sidekiq_unique_jobs/testing"
690
- # OR
710
+ #OR
691
711
  require "sidekiq_unique_jobs/rspec/matchers"
692
712
 
693
713
  RSpec.describe BadWorker do
@@ -4,7 +4,7 @@ module SidekiqUniqueJobs
4
4
  #
5
5
  # Class BatchDelete provides batch deletion of digests
6
6
  #
7
- # @author Mikael Henriksson <mikael@zoolutions.se>
7
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
8
8
  #
9
9
  class BatchDelete
10
10
  #
@@ -4,7 +4,7 @@ module SidekiqUniqueJobs
4
4
  #
5
5
  # Class Changelogs provides access to the changelog entries
6
6
  #
7
- # @author Mikael Henriksson <mikael@zoolutions.se>
7
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
8
8
  #
9
9
  class Changelog < Redis::SortedSet
10
10
  def initialize
@@ -6,7 +6,7 @@ module SidekiqUniqueJobs
6
6
  #
7
7
  # Command line interface for unique jobs
8
8
  #
9
- # @author Mikael Henriksson <mikael@zoolutions.se>
9
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
10
10
  #
11
11
  class Cli < Thor
12
12
  # :nodoc:
@@ -3,7 +3,7 @@
3
3
  module SidekiqUniqueJobs
4
4
  # Shared module for dealing with redis connections
5
5
  #
6
- # @author Mikael Henriksson <mikael@zoolutions.se>
6
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
7
7
  module Connection
8
8
  def self.included(base)
9
9
  base.send(:extend, self)
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # Module with constants to avoid string duplication
5
5
  #
6
- # @author Mikael Henriksson <mikael@zoolutions.se>
6
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
7
7
  #
8
8
  module SidekiqUniqueJobs
9
9
  ARGS ||= "args"
@@ -4,7 +4,7 @@ module SidekiqUniqueJobs
4
4
  #
5
5
  # Class Changelogs provides access to the changelog entries
6
6
  #
7
- # @author Mikael Henriksson <mikael@zoolutions.se>
7
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
8
8
  #
9
9
  class Digests < Redis::SortedSet
10
10
  #
@@ -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@zoolutions.se>
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@zoolutions.se>
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@zoolutions.se>
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@zoolutions.se>
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@zoolutions.se>
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@zoolutions.se>
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@zoolutions.se>
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@zoolutions.se>
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@zoolutions.se>
92
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
93
93
  class UnknownLock < UniqueJobsError
94
94
  end
95
95
  end
@@ -3,7 +3,7 @@
3
3
  module SidekiqUniqueJobs
4
4
  # Utility class to append uniqueness to the sidekiq job hash
5
5
  #
6
- # @author Mikael Henriksson <mikael@zoolutions.se>
6
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
7
7
  module Job
8
8
  extend self
9
9
 
@@ -3,7 +3,7 @@
3
3
  module SidekiqUniqueJobs
4
4
  # Handles loading and dumping of json
5
5
  #
6
- # @author Mikael Henriksson <mikael@zoolutions.se>
6
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
7
7
  module JSON
8
8
  module_function
9
9
 
@@ -3,7 +3,7 @@
3
3
  module SidekiqUniqueJobs
4
4
  # Key class wraps logic dealing with various lock keys
5
5
  #
6
- # @author Mikael Henriksson <mikael@zoolutions.se>
6
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
7
7
  class Key
8
8
  #
9
9
  # @!attribute [r] digest
@@ -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@zoolutions.se>
7
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
8
8
  #
9
9
  class Lock # rubocop:disable Metrics/ClassLength
10
10
  # includes "SidekiqUniqueJobs::Connection"
@@ -5,7 +5,7 @@ module SidekiqUniqueJobs
5
5
  # Abstract base class for locks
6
6
  #
7
7
  # @abstract
8
- # @author Mikael Henriksson <mikael@zoolutions.se>
8
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
9
9
  class BaseLock
10
10
  include SidekiqUniqueJobs::Logging
11
11
 
@@ -5,7 +5,7 @@ module SidekiqUniqueJobs
5
5
  #
6
6
  # Validates the sidekiq options for the Sidekiq client process
7
7
  #
8
- # @author Mikael Henriksson <mikael@zoolutions.se>
8
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
9
9
  #
10
10
  class ClientValidator
11
11
  #
@@ -5,7 +5,7 @@ module SidekiqUniqueJobs
5
5
  #
6
6
  # Validates the sidekiq options for the Sidekiq server process
7
7
  #
8
- # @author Mikael Henriksson <mikael@zoolutions.se>
8
+ # @author Mikael Henriksson <mikael@mhenrixon.com>
9
9
  #
10
10
  class ServerValidator
11
11
  #
@@ -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@zoolutions.se>
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@zoolutions.se>
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@zoolutions.se>
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