projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
9996: Stop retrieving collections if a fatal error makes any further work futile.
[arvados.git]
/
services
/
keepstore
/
keepstore.go
diff --git
a/services/keepstore/keepstore.go
b/services/keepstore/keepstore.go
index 80d867010568090592283e14a8bff28a35b4dda4..48b83de4b8aa2a40e62be953e236162d396ddae0 100644
(file)
--- a/
services/keepstore/keepstore.go
+++ b/
services/keepstore/keepstore.go
@@
-4,6
+4,7
@@
import (
"bytes"
"flag"
"fmt"
"bytes"
"flag"
"fmt"
+ "git.curoverse.com/arvados.git/sdk/go/arvadosclient"
"git.curoverse.com/arvados.git/sdk/go/httpserver"
"git.curoverse.com/arvados.git/sdk/go/keepclient"
"io/ioutil"
"git.curoverse.com/arvados.git/sdk/go/httpserver"
"git.curoverse.com/arvados.git/sdk/go/keepclient"
"io/ioutil"
@@
-196,8
+197,8
@@
func main() {
flag.IntVar(
&permissionTTLSec,
"blob-signature-ttl",
flag.IntVar(
&permissionTTLSec,
"blob-signature-ttl",
-
int(time.Duration(2*7*24*time.Hour).Seconds())
,
- "Lifetime of blob permission signatures. Modifying the ttl will invalidate all existing signatures. "+
+
2*7*24*3600
,
+ "Lifetime of blob permission signatures
in seconds
. Modifying the ttl will invalidate all existing signatures. "+
"See services/api/config/application.default.yml.")
flag.BoolVar(
&flagSerializeIO,
"See services/api/config/application.default.yml.")
flag.BoolVar(
&flagSerializeIO,
@@
-222,7
+223,7
@@
func main() {
flag.DurationVar(
&trashLifetime,
"trash-lifetime",
flag.DurationVar(
&trashLifetime,
"trash-lifetime",
- 0
*time.Second
,
+ 0,
"Time duration after a block is trashed during which it can be recovered using an /untrash request")
flag.DurationVar(
&trashCheckInterval,
"Time duration after a block is trashed during which it can be recovered using an /untrash request")
flag.DurationVar(
&trashCheckInterval,
@@
-332,7
+333,7
@@
func main() {
// Initialize Pull queue and worker
keepClient := &keepclient.KeepClient{
// Initialize Pull queue and worker
keepClient := &keepclient.KeepClient{
- Arvados:
nil
,
+ Arvados:
&arvadosclient.ArvadosClient{}
,
Want_replicas: 1,
Client: &http.Client{},
}
Want_replicas: 1,
Client: &http.Client{},
}