From patchwork Fri Jul 8 18:26:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9221703 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A9CD160467 for ; Fri, 8 Jul 2016 18:29:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F92828387 for ; Fri, 8 Jul 2016 18:29:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 947422837F; Fri, 8 Jul 2016 18:29:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 46FB928387 for ; Fri, 8 Jul 2016 18:29:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLaUG-0003zC-DK; Fri, 08 Jul 2016 18:26:52 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLaUD-0003sZ-5Y for xen-devel@lists.xenproject.org; Fri, 08 Jul 2016 18:26:49 +0000 Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id E1/0B-26908-860FF775; Fri, 08 Jul 2016 18:26:48 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRWlGSWpSXmKPExsXitHSDvW7Gh/p wgzfXuS2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oyZ37gLOlgrNn9sYGtgbGDpYuTkkBDwl/g2 bS8jiM0moCvRtOUvWxcjB4eIgIrE7b0GICazQKjEjheWIBXCAr4St25dYgKxWYAqtlx+yQpi8 wp4Six6NYcNYqKcxPnjP5lBbE6g+K4lN9lBbCEBD4nmX02MICOFBNQk5q6Ph2gVlDg58wnYMc wCEhIHX7xgBimREOCW+NttP4GRbxaSqllIqhYwMq1i1ChOLSpLLdI1stBLKspMzyjJTczM0TU 0MNXLTS0uTkxPzUlMKtZLzs/dxAgMpXoGBsYdjH2r/A4xSnIwKYny7ntWHy7El5SfUpmRWJwR X1Sak1p8iFGGg0NJgjfnPVBOsCg1PbUiLTMHGNQwaQkOHiUR3k0gad7igsTc4sx0iNQpRl2OB T9ur2USYsnLz0uVEudNAykSACnKKM2DGwGLsEuMslLCvIwMDAxCPAWpRbmZJajyrxjFORiVhH l3g0zhycwrgdv0CugIJqAjDALAjihJREhJNTAW9J1U554j2vv7nI5vnGb3pm+Jb9hllz44d9P E2SyDqfHKxrNrH+Wu9cuTuV/LHrBY6MS3TTKZKxlSf++LlNj4za5CLk65qpZLXHtn+VLR/0F1 HO7NCs9/5Vn0at4T/iYvEf/yvmyd8O8NUxsKPzNN4dvinTqtRe6ykYWK+oQNE/vKN2w/y6DEU pyRaKjFXFScCACA6M6HqwIAAA== X-Env-Sender: prvs=9904f56b2=Ian.Jackson@citrix.com X-Msg-Ref: server-12.tower-206.messagelabs.com!1468002405!12825238!3 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 61448 invoked from network); 8 Jul 2016 18:26:47 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 8 Jul 2016 18:26:47 -0000 X-IronPort-AV: E=Sophos;i="5.28,331,1464652800"; d="scan'208";a="372092137" From: Ian Jackson To: Date: Fri, 8 Jul 2016 19:26:23 +0100 Message-ID: <1468002385-4407-32-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1468002385-4407-1-git-send-email-ian.jackson@eu.citrix.com> References: <1468002385-4407-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 31/33] tcl-daemons: ms-ownerdaemon: Use autoreconnect X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP When creating a job, we ask jobdb::transaction to retry on failure. This makes the error handling more effective. Signed-off-by: Ian Jackson --- ms-ownerdaemon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ms-ownerdaemon b/ms-ownerdaemon index 31e6fdd..bf0b595 100755 --- a/ms-ownerdaemon +++ b/ms-ownerdaemon @@ -102,7 +102,7 @@ proc cmd/create-task {chan desc} { "] if {$nrows != 1} { error "multiple $taskdesc!" } set task $av(taskid) - } + } 1 ;#autoreconnect lappend tasks $task puts-chan $chan "OK created-task $task ownd $taskdesc" }