Check for number of workers before soft failing the task. #104195
@ -28,7 +28,7 @@ import (
|
|||||||
// configFilename is used to specify where flamenco will write its config file.
|
// configFilename is used to specify where flamenco will write its config file.
|
||||||
// If the path is not absolute, it will use the flamenco binary location as the
|
// If the path is not absolute, it will use the flamenco binary location as the
|
||||||
// relative root path. This is not intended to be changed during runtime.
|
// relative root path. This is not intended to be changed during runtime.
|
||||||
var configFilename = "flamenco-manager.yaml"
|
var configFilename = "flamenco-manager.yaml"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
latestConfigVersion = 3
|
latestConfigVersion = 3
|
||||||
|
@ -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(
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !linux
|
||||||
// +build !linux
|
// +build !linux
|
||||||
|
|
||||||
/* (c) 2019, Blender Foundation
|
/* (c) 2019, Blender Foundation
|
||||||
|
Loading…
Reference in New Issue
Block a user