Add retrying around inserting channel instance derivations
This commit is contained in:
parent
4ab59f46b4
commit
fd7b0a341d
1 changed files with 17 additions and 9 deletions
|
|
@ -2127,16 +2127,24 @@ SELECT 1 FROM derivation_source_file_nars WHERE derivation_source_file_id = $1"
|
|||
(url git-repository-url)
|
||||
(commit commit)))
|
||||
(guix-source
|
||||
channel-derivations-by-system
|
||||
guix-revision-id
|
||||
(retry-on-missing-store-item
|
||||
(lambda ()
|
||||
(let ((guix-source
|
||||
channel-derivations-by-system
|
||||
(channel->source-and-derivations-by-system
|
||||
conn
|
||||
channel-for-commit
|
||||
fetch-with-authentication?
|
||||
#:parallelism parallelism))
|
||||
(guix-revision-id
|
||||
#:parallelism parallelism)))
|
||||
(let ((guix-revision-id
|
||||
(load-channel-instances utility-thread-channel
|
||||
git-repository-id commit
|
||||
channel-derivations-by-system)))
|
||||
(values guix-source
|
||||
channel-derivations-by-system
|
||||
guix-revision-id)))))))
|
||||
(let ((store-item
|
||||
guix-derivation
|
||||
(channel-derivations-by-system->guix-store-item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue