-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daemon in background mode crashing repeatedly #322
Comments
How are you trying to run it? |
In a rake task in my rails app args[:executors_count].to_i.times do |i| By the way, for Dynflow to work with Rails I had to hack around and do dynflow_engine = Dynflow::Rails.new Prior to be able to use Dynflow at all with Rails |
In Foreman we use the About the hacking part, take a look how it's done in Foreman https://github.com/theforeman/foreman/blob/develop/config/application.rb#L300https://github.com/theforeman/foreman/blob/develop/config/application.rb#L300 |
Thanks for the example but if I do like you suggest
In the context of a Rails application I got the following error
Which is why I had to use the following hack
I'm not sure how you get it working in Foreman |
Hello,
It seems there is a problem in the 'run_background' method of the rails daemon, the '::Logging' class does not exists
It causes the daemon to crash unexpectedly and silently as no logs are being emitted (Rails.logger does not log in any files at this point of time due to the daemonizing process)
I do not see the point of this
reopen
method maybe just deleting the line would be okThe text was updated successfully, but these errors were encountered: