unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Jason Hines <jason@greenhell.com>
To: unicorn-public@bogomips.org
Subject: Will restarting a Unicorn process (via HUP signal) wait for worker threads?
Date: Thu, 23 Apr 2015 20:04:10 -0400	[thread overview]
Message-ID: <CAECjbYjs0V=zbqVo2Z2ZkYrNiSQmNE7QQz-Buuk0=-Y8hbL=DQ@mail.gmail.com> (raw)

In my application, I have some background jobs which are executed in
separate threads.  (using SuckerPunch/Celluloid framework)

If I send a HUP signal to the Unicorn master, the application is reloaded
and gracefully restarts the workers.    But, if those workers have child
threads, does Unicorn wait for those threads to finish before the restart
or are they terminated immediately?

Thanks in advance for any light shed here.


             reply	other threads:[~2015-04-24  0:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-24  0:04 Jason Hines [this message]
2015-04-24  0:13 ` Will restarting a Unicorn process (via HUP signal) wait for worker threads? Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAECjbYjs0V=zbqVo2Z2ZkYrNiSQmNE7QQz-Buuk0=-Y8hbL=DQ@mail.gmail.com' \
    --to=jason@greenhell.com \
    --cc=unicorn-public@bogomips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).