Skip to content

Commit

Permalink
add condition to log about gracefully shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamMarkowski committed Dec 10, 2024
1 parent e5a1fbc commit 4d60e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eventboss/launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def wait_for_shutdown
logger.info('launcher') { "Waiting for #{@pollers.size} pollers, #{@workers.size} workers" }
end

logger.info('launcher') { 'Gracefully shutdown' }
logger.info('launcher') { 'Gracefully shutdown' } if @pollers.empty? && @workers.empty?
end

def shutdown_attempts
Expand Down

0 comments on commit 4d60e9a

Please sign in to comment.