aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker
diff options
context:
space:
mode:
Diffstat (limited to 'worker')
-rw-r--r--worker/exec.go2
-rw-r--r--worker/models.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/worker/exec.go b/worker/exec.go
index 10bc99a..fb238c3 100644
--- a/worker/exec.go
+++ b/worker/exec.go
@@ -77,7 +77,7 @@ func convertCommandErrorToResultType(err error) string {
if err == context.DeadlineExceeded {
return resultTimeout
} else {
- return resultFailure
+ return resultRuntimeError
}
} else {
return resultSuccess
diff --git a/worker/models.go b/worker/models.go
index a7310bd..c60002c 100644
--- a/worker/models.go
+++ b/worker/models.go
@@ -7,7 +7,7 @@ import (
const (
resultSuccess = "success"
- resultFailure = "failure"
+ resultRuntimeError = "runtime_error"
resultTimeout = "timeout"
resultInternalError = "internal_error"
)