Skip to content

Commit

Permalink
Await build completion for all Wave containers
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Jul 27, 2024
1 parent 2fb5bc0 commit 2b8117e
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,9 @@ class WaveClient {
log.trace "Wave fingerprint: $key; assets: $assets"
// get from cache or submit a new request
final response = cache.get(key, { sendRequest(assets) } as Callable )
if( config.freezeMode() ) {
if( response.buildId && !response.cached && !ContainerInspectMode.active() ) {
// await the image to be available when a new image is being built
awaitCompletion(response.buildId)
}
if( response.buildId && !response.cached && !ContainerInspectMode.active() ) {
// await the image to be available when a new image is being built
awaitCompletion(response.buildId)
}
// assemble the container info response
return new ContainerInfo(assets.containerImage, response.targetImage, key)
Expand Down

0 comments on commit 2b8117e

Please sign in to comment.