Skip to content

Commit

Permalink
Merge pull request #419 from vegaprotocol/fix-for-frontend
Browse files Browse the repository at this point in the history
feat: fix detecting for image pull during startup
  • Loading branch information
daniel1302 authored Oct 11, 2023
2 parents fb3137e + 73bb2f3 commit 85e4539
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nomad/client_allocs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (

const (
downloadingImageMessage = "downloading image"
imagePullProgressMessage = "image pull progress"
downloadingArtifactsMessage = "downloading artifacts"
taskReceivedMessage = "received by client"
buildingTaskDirectoryMessage = "building task directory"
Expand Down Expand Up @@ -69,7 +70,7 @@ func (ai allocationInfo) lastEventMessageContains(text string) bool {
}

func (ai allocationInfo) downloadingImage() bool {
return ai.lastEventMessageContains(downloadingImageMessage)
return ai.lastEventMessageContains(downloadingImageMessage) || ai.lastEventMessageContains(imagePullProgressMessage)
}

func (ai allocationInfo) downloadingArtifacts() bool {
Expand Down

0 comments on commit 85e4539

Please sign in to comment.