From ebbc57502723aa5baf1daef3dfb0fefe68c5851e Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Tue, 11 Mar 2014 21:11:23 -0700 Subject: [PATCH] Change name of event from boot to startup --- Changes.md | 2 +- lib/sidekiq.rb | 2 +- lib/sidekiq/cli.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Changes.md b/Changes.md index ab50d304..48d059b6 100644 --- a/Changes.md +++ b/Changes.md @@ -10,7 +10,7 @@ Please see [Upgrading.md](Upgrading.md) for more comprehensive upgrade notes. after 6 months or 10,000 jobs. The Web UI contains a "Dead" tab exposing these jobs. - **Process Lifecycle Events** - you can now register blocks to run at - certain points during the Sidekiq process lifecycle: boot, quiet and + certain points during the Sidekiq process lifecycle: startup, quiet and shutdown. - **Global Error Handlers** - blocks of code which handle errors that occur anywhere within Sidekiq, not just within middleware. diff --git a/lib/sidekiq.rb b/lib/sidekiq.rb index 85b91075..9e72de97 100644 --- a/lib/sidekiq.rb +++ b/lib/sidekiq.rb @@ -21,7 +21,7 @@ module Sidekiq :profile => false, :error_handlers => [], :lifecycle_events => { - :boot => [], + :startup => [], :quiet => [], :shutdown => [], }, diff --git a/lib/sidekiq/cli.rb b/lib/sidekiq/cli.rb index 531d83e4..1fa8ef30 100644 --- a/lib/sidekiq/cli.rb +++ b/lib/sidekiq/cli.rb @@ -74,7 +74,7 @@ module Sidekiq logger.info "Running in #{RUBY_DESCRIPTION}" logger.info Sidekiq::LICENSE - fire_event(:boot) + fire_event(:startup) if !options[:daemon] logger.info 'Starting processing, hit Ctrl-C to stop'