Skip to content

Commit

Permalink
fix: skip unless reaper was registered
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenrixon committed Nov 11, 2023
1 parent f486649 commit c9e2a3b
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 c9e2a3b

Please sign in to comment.