You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rails@085a8fd8cf4a:~/app$ bundle exec shoryuken -R -C config/shoryuken.yml -d
You really should set a logfile if you're going to daemonize
/home/rails/app/vendor/bundle/ruby/2.3.0/gems/shoryuken-2.0.11/lib/shoryuken/cli.rb:80:in `daemonize'
/home/rails/app/vendor/bundle/ruby/2.3.0/gems/shoryuken-2.0.11/lib/shoryuken/cli.rb:34:in `run'
/home/rails/app/vendor/bundle/ruby/2.3.0/gems/shoryuken-2.0.11/bin/shoryuken:6:in `<top (required)>'
/home/rails/app/vendor/bundle/ruby/2.3.0/bin/shoryuken:23:in `load'
/home/rails/app/vendor/bundle/ruby/2.3.0/bin/shoryuken:23:in `<main>'
I expect this case occur after #219. EnvironmentLoader.load read config file, and initialize logger. And daemonize check Shoryuken.options[:logfile]. So, if call daemonize before EnvironmentLoader.load, daemonize fail.
I thought that call initialize logger before daemonize in the same manner as sidekiq, but shoryuken have to load Rails before read config file: #197
therefore I can't fix.
What do you think?
The text was updated successfully, but these errors were encountered:
I can't work fine, for example:
In
shoryuken.yml
, I wrote logfile option:but shoryuken didn't read logfile option.
I expect this case occur after #219.
EnvironmentLoader.load
read config file, and initialize logger. Anddaemonize
checkShoryuken.options[:logfile]
. So, if calldaemonize
beforeEnvironmentLoader.load
,daemonize
fail.Current shoryuken source code,
https://github.com/phstc/shoryuken/blob/v2.0.11/lib/shoryuken/cli.rb#L32-L39
call
daemonize
beforeEnvironmentLoader.load
, so didn't read logifle option in config file.At the same time, I understand #219 is required.
In sidekiq, read config file options and initialize logger, before
daemonize
.https://github.com/mperham/sidekiq/blob/v4.1.2/lib/sidekiq/cli.rb#L39-L43
I thought that call initialize logger before
daemonize
in the same manner as sidekiq, but shoryuken have to load Rails before read config file: #197therefore I can't fix.
What do you think?
The text was updated successfully, but these errors were encountered: