fix: int64 user_id and some more

This commit is contained in:
Marcel_Henselin 2025-12-22 10:56:04 +01:00
parent 6aac685ed4
commit d01ae71b75
8 changed files with 65 additions and 44 deletions

View file

@ -40,6 +40,8 @@ func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface
}
switch strings.ToLower(string(*s.Status)) {
case strings.ToLower(InstanceStateSuccess):
// if no instance address - return false
// if no router address - return false
return true, s, nil
case strings.ToLower(InstanceStateUnknown), strings.ToLower(InstanceStateFailed):
return true, s, fmt.Errorf("create failed for instance with id %s", instanceId)
@ -48,7 +50,7 @@ func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface
}
})
handler.SetTimeout(45 * time.Minute)
handler.SetSleepBeforeWait(5 * time.Second)
handler.SetSleepBeforeWait(15 * time.Second)
return handler
}