Update runner/pool/pool.go

Co-authored-by: Michael Kuhnt <maigl@users.noreply.github.com>
This commit is contained in:
Gabriel 2023-02-07 13:02:47 +02:00 committed by Gabriel Adrian Samfira
parent 77307998ea
commit 439eeee479
No known key found for this signature in database
GPG key ID: 7D073DCC2C074CB5

View file

@ -1051,7 +1051,7 @@ func (r *basePoolManager) addPendingInstances() {
// Set the instance to "creating" before launching the goroutine. This will ensure that addPendingInstances()
// won't attempt to create the runner a second time.
if err := r.setInstanceStatus(instance.Name, providerCommon.InstanceCreating, nil); err != nil {
log.Printf("failed to update runner %s status", instance.Name)
log.Printf("failed to update runner %s status: %s", instance.Name, err)
// We failed to transition the instance to Creating. This means that garm will retry to create this instance
// when the loop runs again and we end up with multiple instances.
continue