1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Change name of event from boot to startup

This commit is contained in:
Mike Perham 2014-03-11 21:11:23 -07:00
parent 32c8fed5b3
commit ebbc575027
3 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -21,7 +21,7 @@ module Sidekiq
:profile => false,
:error_handlers => [],
:lifecycle_events => {
:boot => [],
:startup => [],
:quiet => [],
:shutdown => [],
},

View file

@ -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'