Skip to content

Commit

Permalink
fix: skip unless reaper was registered (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenrixon authored Nov 11, 2023
1 parent f486649 commit 684ce0b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/sidekiq_unique_jobs/orphans/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ def start(test_task = nil) # rubocop:disable
self.task = test_task || default_task

with_logging_context do
register_reaper_process
log_info("Starting Reaper")
if register_reaper_process
log_info("Starting Reaper")

task.add_observer(Observer.new)
task.execute
task
task.add_observer(Observer.new)
task.execute
task
end
end
end

Expand Down

0 comments on commit 684ce0b

Please sign in to comment.