-
Notifications
You must be signed in to change notification settings - Fork 70
DEV: Add compatibility with Pitchfork #293
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
base: main
Are you sure you want to change the base?
Conversation
2cab65b to
3db3a67
Compare
| if ENV["UNICORN_SIDEKIQS"].to_i > 0 | ||
| log "Stopping job queue to reclaim memory, master pid is #{master_pid}" | ||
| Process.kill("TSTP", unicorn_master_pid) | ||
| sleep 1 | ||
| # older versions do not have support, so quickly send a cont so master process is not hung | ||
| Process.kill("CONT", unicorn_master_pid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually doesn’t work anymore. It hasn’t for some time now, at least one year (see discourse/discourse#27257).
| end | ||
|
|
||
| def reload | ||
| set_restart_flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With #set_restart_flag/#clear_restart_flag, we’re signaling MessageBus to allow its poll call to wait for the server response instead of its default behavior of killing the request after 100 ms.
This patch introduces a web server adapter for the upgrader class. This allows the upgrader to work with both Unicorn and Pitchfork. The user experience when watching the upgrade process from the admin page should stay the same.
d079825 to
2e88152
Compare
This PR introduces a web server adapter for the upgrader class. This allows the upgrader to work with both Unicorn and Pitchfork.
The user experience when watching the upgrade process from the admin page should stay the same.
Relies on discourse/discourse#36456