Check for number of workers before soft failing the task. #104195

Merged
Sybren A. Stüvel merged 15 commits from Nitin-Rawat-1/flamenco:104190-job-stuck into main 2023-04-20 11:53:43 +02:00
3 changed files with 4 additions and 2 deletions
Showing only changes of commit 349b7704be - Show all commits

View File

@ -47,8 +47,9 @@ type TimeService interface {
Now() time.Time Now() time.Time
} }
//go:generate go run github.com/golang/mock/mockgen -destination mocks/cli_runner.gen.go -package mocks git.blender.org/flamenco/internal/worker CommandLineRunner
// CommandLineRunner is an interface around exec.CommandContext(). // CommandLineRunner is an interface around exec.CommandContext().
//
//go:generate go run github.com/golang/mock/mockgen -destination mocks/cli_runner.gen.go -package mocks git.blender.org/flamenco/internal/worker CommandLineRunner
type CommandLineRunner interface { type CommandLineRunner interface {
CommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd CommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd
RunWithTextOutput( RunWithTextOutput(

View File

@ -1,3 +1,4 @@
//go:build !linux
// +build !linux // +build !linux
/* (c) 2019, Blender Foundation /* (c) 2019, Blender Foundation