19972: Disable auto-retry in ws and dispatcher.
[arvados.git] / services / ws / permission.go
index ac895f80e5fd7ae7933558fbfa6e6acb97a6c7b0..78158b12a1921748d46bfe579ded1d3ed1c5982e 100644 (file)
@@ -75,7 +75,9 @@ func (pc *cachingPermChecker) Check(ctx context.Context, uuid string) (bool, err
        }
 
        pc.nMisses++
-       err = pc.RequestAndDecode(&buf, "GET", path, nil, url.Values{
+       ctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(time.Minute))
+       defer cancel()
+       err = pc.RequestAndDecodeContext(ctx, &buf, "GET", path, nil, url.Values{
                "include_trash": {"true"},
                "select":        {`["uuid"]`},
        })