From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=0.0 required=3.0 tests=AWL,MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Mike Perham Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: graceful shutdown Date: Sun, 1 May 2011 13:52:04 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1304285069 15017 80.91.229.12 (1 May 2011 21:24:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 May 2011 21:24:29 +0000 (UTC) To: "Rainbows! list" Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Sun May 01 23:24:24 2011 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=DxHHoI4HQeLMCbOzRUX8wv+RKqrdgZ2tgIDh0BkwoIs=; b=AsXS/QeURVPhRYizmHlklRODN3tC3dNqzmq/QAr1VtIUZpYFyVDO7O1u8AfxiMu4IE 2Q0NbfE4Dumzg1wTwGJbe9H34kxJ5dmq/yEdaCbRBJCyiemWS5fKzHuFZxcKYhz2HSVo Imx2M6EEMSG5VL1goRWXVMJpcmapNsaHJDNzA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=PWB9HuU70G4bPq6RS7je3FO5Je2JGD523HVGFJ2CEmsj4LwOm0kaBP3g1hqMG+I0cA YZfhI5XsDNABx2tMad7wMM3pTa08m7upIkv+aZZilCJmD9J/eaMMzvJW8MVJWcob/eL1 hbMJ7BbToSgaBbcahpOc1HPKfjxnBIJ2PZlCM= X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:243 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QGe7r-00017L-Vb for gclrrg-rainbows-talk@m.gmane.org; Sun, 01 May 2011 23:24:24 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 253FF1858300; Sun, 1 May 2011 17:24:23 -0400 (EDT) Received: from mail-vw0-f50.google.com (mail-vw0-f50.google.com [209.85.212.50]) by rubyforge.org (Postfix) with ESMTP id C279A18582EE for ; Sun, 1 May 2011 16:52:04 -0400 (EDT) Received: by vws14 with SMTP id 14so5261150vws.23 for ; Sun, 01 May 2011 13:52:04 -0700 (PDT) Received: by 10.52.66.72 with SMTP id d8mr10774925vdt.87.1304283124414; Sun, 01 May 2011 13:52:04 -0700 (PDT) Received: by 10.52.183.106 with HTTP; Sun, 1 May 2011 13:52:04 -0700 (PDT) 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