Skip to content

Commit

Permalink
fix: go-staticcheck: break loop were not positionned at the correct l…
Browse files Browse the repository at this point in the history
…evel (#301)

* fix: go-staticcheck: break loop were not positionned at the correct level
* fix: bump dependencies for Dockerfile

Signed-off-by: Romain Beuque <[email protected]>
  • Loading branch information
rbeuque74 authored Dec 21, 2021
1 parent c2d696f commit 791d927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:latest AS js-builder
FROM node:16 AS js-builder

RUN npm install -g @angular/cli
COPY ./ui /home/node/ui
Expand All @@ -11,7 +11,7 @@ RUN BASEHREF=___UTASK_DASHBOARD_BASEHREF___ PREFIX_API_BASE_URL=___UTASK_DASHBOA
WORKDIR /home/node/ui/editor
RUN BASEHREF=___UTASK_EDITOR_BASEHREF___ SENTRY_DSN=___UTASK_DASHBOARD_SENTRY_DSN___ make build-prod

FROM golang:1.16-buster
FROM golang:1.17-buster

COPY . /go/src/github.com/ovh/utask
WORKDIR /go/src/github.com/ovh/utask
Expand Down
3 changes: 2 additions & 1 deletion engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ func resolve(dbp zesty.DBProvider, res *resolution.Resolution, t *task.Task, sm

expectedMessages := runAvailableSteps(dbp, map[string]bool{}, res, t, stepChan, executedSteps, []string{}, wg, debugLogger)

forLoop:
for expectedMessages > 0 {
debugLogger.Debugf("Engine: resolve() %s loop, %d expected steps", res.PublicID, expectedMessages)
select {
Expand Down Expand Up @@ -462,7 +463,7 @@ func resolve(dbp zesty.DBProvider, res *resolution.Resolution, t *task.Task, sm
case <-gracePeriodEnd:
// shutting down, time is up: exit the loop no matter how many steps might be pending
expectedMessages = 0
break
break forLoop
}
}

Expand Down

0 comments on commit 791d927

Please sign in to comment.