diff --git a/pkg/job/job.go b/pkg/job/job.go index beda8d72fb..5115fd7908 100644 --- a/pkg/job/job.go +++ b/pkg/job/job.go @@ -244,5 +244,5 @@ func GetCurrentJobState(states map[string]executor.JobState) (string, executor.J } func JobStateValue(jobState executor.JobState) int { - return int(executor.JobStateRunning) + return int(jobState.State) }