From: Mike Perham <mperham-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Rainbows! list" <rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org>
Subject: graceful shutdown
Date: Sun, 1 May 2011 13:52:04 -0700 [thread overview]
Message-ID: <BANLkTimZtpKWjyRa0M9habiw1npXdMkUBQ@mail.gmail.com> (raw)
I've got a multithreaded system, some threads are responding to web
requests, others are performing background/async tasks. Is there any
way to implement graceful shutdown with Rainbows? Currently I have a
blocking SIGQUIT shutdown hook for my async task library:
https://github.com/mperham/girl_friday/blob/master/lib/girl_friday.rb#L55
Will this work? Is this all that's really needed?
_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying
next reply other threads:[~2011-05-01 21:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-01 20:52 Mike Perham [this message]
[not found] ` <BANLkTimZtpKWjyRa0M9habiw1npXdMkUBQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-01 21:51 ` graceful shutdown 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/rainbows/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTimZtpKWjyRa0M9habiw1npXdMkUBQ@mail.gmail.com \
--to=mperham-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.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/rainbows.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).