Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
* graceful shutdown
@ 2011-05-01 20:52 Mike Perham
       [not found] ` <BANLkTimZtpKWjyRa0M9habiw1npXdMkUBQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Perham @ 2011-05-01 20:52 UTC (permalink / raw)
  To: Rainbows! list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-01 21:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-01 20:52 graceful shutdown Mike Perham
     [not found] ` <BANLkTimZtpKWjyRa0M9habiw1npXdMkUBQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-01 21:51   ` Eric Wong

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).