Hello,

Mathieu Lirzin <m...@gnu.org> skribis:

> Mathieu Lirzin <m...@gnu.org> writes:
>
>> l...@gnu.org (Ludovic Courtès) writes:
>>
>>> What change would you suggest to solve this problem?  It would be best
>>> if Cuirass allowed several jobs building the same derivations (the key
>>> could be an autoincrement counter instead of the (drv,eval) pair maybe?)
>>
>> Seems reasonable to me.  I will do that.
>> Thanks.
>
> After a second thought, I think maybe it is sufficient to just ignore
> when a derivation is added twice by an evaluation.  As a consequence
> 'cuirass' will only try to realize the derivation once per evaluation.

Even better, yes.

> From 568d0e1b0866a45e95440d17b6e8f1740cc23e3f Mon Sep 17 00:00:00 2001
> From: Mathieu Lirzin <m...@gnu.org>
> Date: Mon, 9 Jan 2017 01:29:48 +0100
> Subject: [PATCH] database: db-add-derivation: Don't try to add a derivation
>  twice.
>
> * src/cuirass/database.scm (db-add-derivation): Ignore if JOB is already
> present in DB.

OK!

We can update the ‘cuirass’ package in Guix afterwards.

Thank you!

Ludo’.

Reply via email to