We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6ffb2c commit 4767a1dCopy full SHA for 4767a1d
components/ide/jetbrains/image/status/main.go
@@ -165,13 +165,13 @@ func main() {
165
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
166
defer cancel()
167
168
- tasks, err := getTasksList(ctx)
169
- if err != nil {
170
- log.Fatalf("cannot get task list: %s", err)
171
- }
172
-
173
// todo: add max timeout (prebuild timeout is 1 hour)
174
for {
+ tasks, err := getTasksList(ctx)
+ if err != nil {
+ log.Fatalf("cannot get task list: %s", err)
+ }
+
175
var runningTasksCounter int
176
for _, task := range tasks {
177
if task.State != 2 && task.Presentation.Name != "GITPOD_JB_WARMUP_TASK" {
0 commit comments