Skip to content

Commit

Permalink
Merge pull request #433 from filecoin-project/jobstate-fix
Browse files Browse the repository at this point in the history
actually look at the jobState variable, rather than always returning 4
  • Loading branch information
lukemarsden authored Aug 2, 2022
2 parents 1766a7c + ea60239 commit f9fd85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit f9fd85e

Please sign in to comment.