help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guix offload


From: Saku Laesvuori
Subject: Re: guix offload
Date: Wed, 20 Dec 2023 17:19:42 +0200

> Hello.
> 
> I have a configured build machine. From time to time it is not available
> and guix build gets stuck in an endless loop of:
> 
> guix offload: error: failed to connect to : No route to host
> process 13902 acquired build slot 
> guix offload: error: failed to connect to : No route to host
> process 13902 acquired build slot 
> 
> Is it possible to make the build continue locally after several
> unsuccessful attempts?

I don't think that is currently possible. You can, however, filter your
build machines with a snippet like this in the operating system
declaration[1]. This filters away hosts that are not resolvable, but you
could adapt it to use some other predicate if needed.

```
(build-machines
 (list #~(let* ((resolvable? (lambda (machine)
                               (false-if-exception
                                 (gethost (build-machine-name machine))))))
           (filter resolvable?
                   (list (build-machine
                     (name "example.com")
                     (systems '("x86_64-linux"))
                     (host-key "xxxx")
                     (user "offload")))))))
```

If you don't use guix system you can implement the filter logic in
/etc/guix/machines.scm.

[1]: 
https://guix.gnu.org/manual/devel/en/guix.html#guix_002dconfiguration_002dbuild_002dmachines

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]