20602: Add IneligibleForQueuePriority const.
[arvados.git] / lib / service / cmd.go
index 37eac86d253f8324fdd4d029791e9fef8b1db755..c66c279432dc2f0ae6d5777f6776a1c2a3d063fb 100644 (file)
@@ -10,7 +10,6 @@ import (
        "flag"
        "fmt"
        "io"
-       "math"
        "net"
        "net/http"
        "net/http/httptest"
@@ -262,7 +261,7 @@ func (c *command) requestPriority(req *http.Request, queued time.Time) int64 {
                // Return 503 immediately instead of queueing. We want
                // to send feedback to dispatchcloud ASAP to stop
                // bringing up new containers.
-               return math.MinInt64
+               return httpserver.IneligibleForQueuePriority
        case req.Method == http.MethodPost && strings.HasPrefix(req.URL.Path, "/arvados/v1/logs"):
                // "Create log entry" is the most harmless kind of
                // request to drop.