From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qMB2ApnpL2c1VQAAqHPOHw:P1 (envelope-from ) for ; Sat, 09 Nov 2024 23:00:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id qMB2ApnpL2c1VQAAqHPOHw (envelope-from ) for ; Sun, 10 Nov 2024 00:00:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=DydSLYxd; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731193241; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=zxI+rByuOmBYDCSnoi6PGFETofI/i88EZ1Dn8zCvLG0=; b=RS6w3LGyIXGrHutI6YBErr4xHFBY/uown2QjpGNnuTgOJp0aTQNG/z7LBweEmlGmFMp9w0 7FOvLUQgNPrEcvOAq2CjDuZdAX7uE3+TKjEBJ8upyUSudduURi/fTu2hwwY0298Bh27a6U Eza8nIpjiQbWAFJdlTj99s2pjRTIdVRZbnMXBMoU62pXQI2AOg0WpAD/sizQFDTKei0rwF 8bheszQl7j+lvf/5eOlLmUdaZimk6+v3kQhRvyxWo5i2TM41e4tnErjtf3nDIGz2rWe5tq nue4SErdUqj1D2/81AfpbBLBShkjoOzcW19JijAc680aYOkjSKJp0/Tsultx4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731193241; a=rsa-sha256; cv=none; b=P3UInLquBBBQ7ow/np21u5JnDooO/Ck2AGNhPPFk+GenX75Ou6O5YiF8QWdwXQ90O2kmuy /qoryIzpGfchtYE4wbzgXqfD88TQYBfNi2spYj/YjL/vQ277h4E4HjNmqJjfnEPRNXAgV3 kH73QNXD0GQ1tQCYr/m1sXy43xAKPv6z7Smro2Cdoo6ZeWDSIUtj+PUEHYRaIjUvmlMoyJ Yfm1LWjLfLi3zwwf5/+tCMwK+4itwnKxMK7AW3e3AAA93NKuEzkyNIRbU8T+rQ+MUxWD6U EtirYplcA5IW2JV62SA/1hnf5Mf8+46/h1ZVUMmv/1l9v4IC8JsLNy6g0Zxuvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=DydSLYxd; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C205D5ED7C for ; Sun, 10 Nov 2024 00:00:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9uR2-0006q2-0A; Sat, 09 Nov 2024 18:00:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9uQw-0006pW-Bv for guix-devel@gnu.org; Sat, 09 Nov 2024 17:59:58 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9uQv-0006z5-CM; Sat, 09 Nov 2024 17:59:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=zxI+rByuOmBYDCSnoi6PGFETofI/i88EZ1Dn8zCvLG0=; b=DydSLYxdEroABUYbDg2h J11LSRuDbhoWg/FyXpOHxTdirPIw5kg4QfaHais2oPVTncdIMwGnP0GL7pL8L9r3l75cSmNTQiTOt ug+G81Sll6ErcU0wpUyNquyM8tcXw67yhZT/P/7CqigoBhUQrOcTNQonwFflujwuQDhOSD+un2/TN F/x2zik3cvDpkr0UzvS23JKP3gcByufczuSWrEV1F5CXpBhG9pfaR2Oc/Adi4brZ67c4H+EyyIc5p WXl+tiCrpuVgnPj/VC9uj8yUJQMdRlR5tdMHO2rsYBvx9E/W77MD/KlWRUQpoavNafeQbq+vwk/5B z+B8ZgHl2AzKig==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Cc: Felix Lechner Subject: Re: [Shepherd] Should 'herd status' block for a long-running timer? In-Reply-To: <8734k5n82u.fsf@lease-up.com> (Felix Lechner via's message of "Tue, 05 Nov 2024 05:06:33 -0800") References: <8734k5n82u.fsf@lease-up.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Nonidi 19 Brumaire an 233 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour de la Grenade X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 09 Nov 2024 23:59:51 +0100 Message-ID: <87h68gypw8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.47 X-Spam-Score: -3.47 X-Migadu-Queue-Id: C205D5ED7C X-Migadu-Scanner: mx13.migadu.com X-TUID: zvCS1BDMVrF7 Hi, Felix Lechner via "Development of GNU Guix and the GNU System distribution." skribis: > Are 'herd status' and 'herd status NAME' supposed to block on > long-running timers like this one? [1] Thanks! In this case the timer is using a Scheme procedure, not a record. Procedures must be written in a non-blocking/suspendable fashion, as noted in the manual. That said, I don=E2=80=99t immediately see what could block in your timer: = it uses =E2=80=98system*=E2=80=99 to spawn processes, which is suspendable ins= ide shepherd. Would be nice if you explain when it=E2=80=99s blocking and/or use =E2=80= =98strace=E2=80=99 to see what=E2=80=99s going on while it=E2=80=99s blocking. That said, this timer is a bit long; I=E2=80=99d suggest going for something simpler and/or deferring to a that does the heavy lifting. HTH, Ludo=E2=80=99.