From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <guix-devel-bounces+larch=yhetil.org@gnu.org>
Received: from mp2.migadu.com ([2001:41d0:303:e16b::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms8.migadu.com with LMTPS
	id eG6EF4DVCGYrZQEAe85BDQ:P1
	(envelope-from <guix-devel-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 31 Mar 2024 05:16:16 +0200
Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp2.migadu.com with LMTPS
	id eG6EF4DVCGYrZQEAe85BDQ
	(envelope-from <guix-devel-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 31 Mar 2024 05:16:16 +0200
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=disroot.org header.s=mail header.b=LVrNkED6;
	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=reject) header.from=disroot.org
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1711854976;
	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:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post:dkim-signature;
	bh=XZx/qnwuxUWKleMibSBK+gUS7CuMN9Uu5CHVwLk2xYU=;
	b=UsWzOFeZvd1I6/qcZVb6y1UnfpYCV0DK8BOd/Celrq6uBybkMAM+wTMmPvHLB+HRk9Yjg/
	TonqO38aB+s+7wUFBzd7rBnOs3wwfVYk8m7qwJ2U9Gmmiq7ZWrOyI9yWfn+/R2QekoDj8j
	WkmH4TIZMWTED96mLPUd27Y8+a+TLlHRCWhDgFsGrKZvPH8gOw0IDh8WNrI9+/h76tmhh8
	K/U+pA8ZyZm7zNwLhkK7J48RrYt+fa87rdyoOsNjKKcD9I8oxdPrqzQJXrC7v6HvQ01pDP
	EoYX5dc8nS03bLXRve3Men+LnFIww7FU21jPjv5HI36HeHTAST+rJcAjtw3Fzw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=disroot.org header.s=mail header.b=LVrNkED6;
	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=reject) header.from=disroot.org
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711854976; a=rsa-sha256; cv=none;
	b=g+xKH1YftluX2VODoIXcJNkcRbNo4gkyXjZv9l6Keo3lANB+TpliqksgSHL5HyT9n0SCJv
	3kc3W/4xWRzXq4hYvfTdTj410XnJwflDoo+ZXtbQjNqg/HTZleyRzDakKOJueiRoOghug2
	uCcjWxm4l6WrwdSU2pa/QgIN5esmuPLPtFvVa+koHPh7Qxm6OmtMtaT9koBl/3xdbWI9rc
	6Wz0yPKnW4Dft+MLNzBkX/9RlDeyNfaI0ud/0hZPwy1U5h1mPwCxjlVheu3SriWpYBAUzI
	mpdF+RLGnkIbAvZVPBSefv9WGwmtzT2OYjD0yObg2pOWQNpp+pZuTIhKffFUWA==
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 15D9112736
	for <larch@yhetil.org>; Sun, 31 Mar 2024 05:16:15 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guix-devel-bounces@gnu.org>)
	id 1rqlfK-0007fi-HK; Sat, 30 Mar 2024 23:15:26 -0400
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 <adam.faiz@disroot.org>)
 id 1rqlfF-0007em-Tr
 for guix-devel@gnu.org; Sat, 30 Mar 2024 23:15:23 -0400
Received: from layka.disroot.org ([178.21.23.139])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <adam.faiz@disroot.org>)
 id 1rqlf8-00076V-U8; Sat, 30 Mar 2024 23:15:16 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id 3C7E64191D;
 Sun, 31 Mar 2024 05:15:09 +0200 (CEST)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from layka.disroot.org ([127.0.0.1])
 by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 3lR32WlhSEk6; Sun, 31 Mar 2024 05:15:08 +0200 (CEST)
Date: Sun, 31 Mar 2024 03:15:04 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1711854908; bh=XZx/qnwuxUWKleMibSBK+gUS7CuMN9Uu5CHVwLk2xYU=;
 h=Date:From:To:CC:Subject;
 b=LVrNkED6FFrzjbTfBnQX/oQbSWJvSdeWJUz9FZvoKDWtmlAGqkdwdQYKo9PBwzoff
 pRCo7HNDpQjltxig859QtADOdiMtitucSrhiB+2QHvHaBLzxoeW0yun2EiGYP0VjWo
 HCJltmVCSCn50fD0uo3G22R/hPRxbVEgYgCTIDuObV5oLNBj1vv19nGJUwjhIm8y/A
 67OGewwKtpiLb5npbnb7OantlUZ4BLfXJ86WgX9897pviEAuyFIQz236MqYtFLrois
 WIVERhc8w77q5kLHe7zxn0BIXxFVqZQUljEU5JtarU3pOCHu3PtNT9i0ZBJ68smeCU
 p0zp+sA6zRP0A==
From: Adam Faiz <adam.faiz@disroot.org>
To: ludo@gnu.org
CC: guix-devel@gnu.org
Subject: Re: Shepherd timers
Message-ID: <93EEFB57-F2BC-4317-B548-842BB4256305@disroot.org>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=178.21.23.139; envelope-from=adam.faiz@disroot.org;
 helo=layka.disroot.org
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
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."
 <guix-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>,
 <mailto:guix-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-devel>
List-Post: <mailto:guix-devel@gnu.org>
List-Help: <mailto:guix-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>,
 <mailto:guix-devel-request@gnu.org?subject=subscribe>
Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org
Sender: guix-devel-bounces+larch=yhetil.org@gnu.org
X-Migadu-Country: US
X-Migadu-Flow: FLOW_IN
X-Spam-Score: -5.63
X-Migadu-Queue-Id: 15D9112736
X-Migadu-Scanner: mx13.migadu.com
X-Migadu-Spam-Score: -5.63
X-TUID: gOoWQe2KYTbK

Hi Ludovic,

I want to give my suggestion for the timer support in the Shepherd:

Could the Shepherd depend on mcron for the timer functionality? Since mcro=
n already handles scheduling commands to run at a certain time, there would=
 be no need to reimplement it again=2E

Mcron would just need to support handling user jobs dynamically, and the S=
hepherd implementing timers as a simple interface for it=2E