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:
parent
32c8fed5b3
commit
ebbc575027
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -21,7 +21,7 @@ module Sidekiq
|
|||
:profile => false,
|
||||
:error_handlers => [],
|
||||
:lifecycle_events => {
|
||||
:boot => [],
|
||||
:startup => [],
|
||||
:quiet => [],
|
||||
:shutdown => [],
|
||||
},
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue