From: Attila Lendvai <attila@lendvai.name>
To: Richard Sent <richard@freakingpenguin.com>
Cc: guix-devel@gnu.org
Subject: Re: Guix deploy --keep-going equivalent for machine connection failures
Date: Thu, 18 Jan 2024 17:45:09 +0000 [thread overview]
Message-ID: <tAH9XPLtq17fVWPZgRaotyKzMRRXgqnriFzzejwl0bj3TZRBTDYSB06mgoewmieu1_58yxF9dQ9cU68FTUMtYeRstvDIqqyTnyjJ4ILrZnA=@lendvai.name> (raw)
In-Reply-To: <494a6ad05644e3b4c215d2bdaf388811@freakingpenguin.com>
> Another option worth considered is adding a `'can-connection-fail?' (default: #f)` to either `machine` or `machine-ssh-configuration`.
i'd call it `ignore-connection-failure?`, or if we want to ignore all problems for a machine, then `ignore-failure?`.
--keep-going could set the default value for the session, and the machine specific variable would override it.
as for the implementation, i'd use continuable exceptions of a specific type, and then from scheme code users could install handlers that ignore the situation.
avoiding shell scripts these days is a good idea after all.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Democracy and liberty are not the same. Democracy is little more than mob rule, while liberty refers to the sovereignty of the individual.”
— Walter E. Williams (1936–)
prev parent reply other threads:[~2024-01-18 17:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-15 22:47 Guix deploy --keep-going equivalent for machine connection failures Richard Sent
2024-01-17 9:43 ` Carlo Zancanaro
2024-01-17 14:52 ` Csepp
2024-01-18 17:45 ` Attila Lendvai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='tAH9XPLtq17fVWPZgRaotyKzMRRXgqnriFzzejwl0bj3TZRBTDYSB06mgoewmieu1_58yxF9dQ9cU68FTUMtYeRstvDIqqyTnyjJ4ILrZnA=@lendvai.name' \
--to=attila@lendvai.name \
--cc=guix-devel@gnu.org \
--cc=richard@freakingpenguin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.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).