Cleanup: remove unused code

This commit is contained in:
Sybren A. Stüvel 2022-04-08 14:46:53 +02:00
parent 2e2205c00e
commit 1960b668aa
2 changed files with 1 additions and 4 deletions

View File

@ -14,8 +14,8 @@ import (
var (
schedulableTaskStatuses = []api.TaskStatus{api.TaskStatusQueued, api.TaskStatusSoftFailed, api.TaskStatusActive}
completedTaskStatuses = []api.TaskStatus{api.TaskStatusCompleted}
schedulableJobStatuses = []api.JobStatus{api.JobStatusActive, api.JobStatusQueued, api.JobStatusRequeued}
// completedTaskStatuses = []api.TaskStatus{api.TaskStatusCompleted}
)
// ScheduleTask finds a task to execute by the given worker.

View File

@ -10,7 +10,6 @@ import (
"fmt"
"io"
"os/exec"
"time"
"github.com/google/shlex"
"github.com/rs/zerolog"
@ -22,8 +21,6 @@ import (
// Effectively this determines the maximum line length that can be handled.
const StdoutBufferSize = 40 * 1024
const timeFormat = time.RFC3339Nano
type BlenderParameters struct {
exe string // Expansion of `{blender}`: executable path + its CLI parameters defined by the Manager.
argsBefore []string // Additional CLI arguments defined by the job compiler script, to go before the blend file name.