Unverified Commit faef38a5 authored by Sune Keller's avatar Sune Keller 🐳

Proceed to counting tasks straight away

Signed-off-by: Sune Keller's avatarSune Keller <absukl@almbrand.dk>
parent e6389bd0
Pipeline #114814212 passed with stage
in 3 minutes and 30 seconds
......@@ -427,14 +427,13 @@ func check(ctx statusContextType) bool {
ctx.mu.Lock()
defer ctx.mu.Unlock()
for _, name := range ctx.serviceNames {
// Inspect service to get UpdateStatus
// Inspect service to get current spec
service := mustInspectService(name)
if _, exists := ctx.updating[name]; !exists {
ctx.updating[name] = struct{}{}
log.WithFields(logrus.Fields{
"service": name,
}).Info("Service create started (must be new since no UpdateStatus)")
continue
}).Info("Service create started")
}
currentTasks, err := dockerCLI.TaskList(context.Background(), types.TaskListOptions{
Filters: filters.NewArgs(filters.Arg("name", fmt.Sprintf("%s.", name))),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment