From 73bb2f31ebd1386a67c4500c41a5f18cff571a06 Mon Sep 17 00:00:00 2001 From: daniel1302 Date: Wed, 11 Oct 2023 13:43:15 +0200 Subject: [PATCH] feat: fix detecting for image pull during startup --- nomad/client_allocs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nomad/client_allocs.go b/nomad/client_allocs.go index a0321a61..a2c03da2 100644 --- a/nomad/client_allocs.go +++ b/nomad/client_allocs.go @@ -12,6 +12,7 @@ import ( const ( downloadingImageMessage = "downloading image" + imagePullProgressMessage = "image pull progress" downloadingArtifactsMessage = "downloading artifacts" taskReceivedMessage = "received by client" buildingTaskDirectoryMessage = "building task directory" @@ -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 {