help-guix
[Top][All Lists]
Advanced

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

Re: guix offload


From: Aleksandr Vityazev
Subject: Re: guix offload
Date: Wed, 20 Dec 2023 19:29:22 +0300
User-agent: Gnus/5.13 (Gnus v5.13)

On 2023-12-20 17:19, Saku Laesvuori wrote:

>> 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")))))))
> ```
Thanks, it works well.

-- 
Best regards,
Aleksandr Vityazev



reply via email to

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