git » chasquid » commit 2064e9e

queue: Increase retry time from 12h to 20h

author Alberto Bertogli
2018-05-20 10:58:41 UTC
committer Alberto Bertogli
2018-05-20 11:05:32 UTC
parent 97826d4f88941bbcac60feabc6a419511fbe1298

queue: Increase retry time from 12h to 20h

Some transient issues might take more than 12h to resolve, specially if
they happen overnight.

20h gives a bit more margin for retries, while still being short enough
so that users are notified early.

internal/queue/queue.go +1 -1

diff --git a/internal/queue/queue.go b/internal/queue/queue.go
index cd92e58..f21094f 100644
--- a/internal/queue/queue.go
+++ b/internal/queue/queue.go
@@ -38,7 +38,7 @@ const (
 	maxQueueSize = 200
 
 	// Give up sending attempts after this duration.
-	giveUpAfter = 12 * time.Hour
+	giveUpAfter = 20 * time.Hour
 
 	// Prefix for item file names.
 	// This is for convenience, versioning, and to be able to tell them apart