-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check current penaltyjob before scheduling new job (#117)
* bundle * p_j * fix * fix
- Loading branch information
Showing
4 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
# config/initializers/sidekiq.rb | ||
require "sidekiq_unique_jobs" | ||
|
||
Sidekiq.configure_server do |config| | ||
config.redis = { url: ENV["REDIS_URL"] } | ||
|
||
config.server_middleware do |chain| | ||
chain.add SidekiqUniqueJobs::Middleware::Server | ||
end | ||
|
||
config.client_middleware do |chain| | ||
chain.add SidekiqUniqueJobs::Middleware::Client | ||
end | ||
end | ||
|
||
Sidekiq.configure_client do |config| | ||
config.redis = { url: ENV["REDIS_URL"] } | ||
|
||
config.client_middleware do |chain| | ||
chain.add SidekiqUniqueJobs::Middleware::Client | ||
end | ||
end |