You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-11Lines changed: 24 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ Want to show me some ❤️ for the hard work I do on this gem? You can use the
59
59
-[sidekiq-global_id](#sidekiq-global_id)
60
60
-[sidekiq-status](#sidekiq-status)
61
61
-[Global Configuration](#global-configuration)
62
+
-[digest_algorithm](#digest_algorithm)
62
63
-[debug_lua](#debug_lua)
63
64
-[lock_timeout](#lock_timeout)
64
65
-[lock_ttl](#lock_ttl)
@@ -734,17 +735,29 @@ Configure SidekiqUniqueJobs in an initializer or the sidekiq initializer on appl
734
735
735
736
```ruby
736
737
SidekiqUniqueJobs.configure do |config|
737
-
config.logger =Sidekiq.logger # default, change at your own discretion
738
-
config.logger_enabled =true# default, disable for test environments
739
-
config.debug_lua =false# Turn on when debugging
740
-
config.lock_info =false# Turn on when debugging
741
-
config.lock_ttl =600# Expire locks after 10 minutes
742
-
config.lock_timeout =nil# turn off lock timeout
743
-
config.max_history =0# Turn on when debugging
744
-
config.reaper =:ruby# :ruby, :lua or :none/nil
745
-
config.reaper_count =1000# Stop reaping after this many keys
746
-
config.reaper_interval =600# Reap orphans every 10 minutes
747
-
config.reaper_timeout =150# Timeout reaper after 2.5 minutes
738
+
config.logger =Sidekiq.logger # default, change at your own discretion
739
+
config.logger_enabled =true# default, disable for test environments
740
+
config.debug_lua =false# Turn on when debugging
741
+
config.lock_info =false# Turn on when debugging
742
+
config.lock_ttl =600# Expire locks after 10 minutes
743
+
config.lock_timeout =nil# turn off lock timeout
744
+
config.max_history =0# Turn on when debugging
745
+
config.reaper =:ruby# :ruby, :lua or :none/nil
746
+
config.reaper_count =1000# Stop reaping after this many keys
747
+
config.reaper_interval =600# Reap orphans every 10 minutes
748
+
config.reaper_timeout =150# Timeout reaper after 2.5 minutes
749
+
config.digest_algorithm =:modern# Timeout reaper after 2.5 minutes
750
+
end
751
+
```
752
+
#### digest_algorithm
753
+
754
+
For backwards compatibility this one is set to `:legacy` by the default. If you happen to run into issues with FIPS being enabled on your redis server you might want to set this to `:modern`.
755
+
756
+
See: https://github.com/mhenrixon/sidekiq-unique-jobs/issues/848 for explanation
757
+
758
+
```ruby
759
+
SidekiqUniqueJobs.configure do |config|
760
+
config.digest_algorithm =:modern# Timeout reaper after 2.5 minutes
0 commit comments