Skip to content

Commit 7a4b798

Browse files
author
Gregory Russell
committed
Extend msg deadline to 10 minutes
1 parent 831e53b commit 7a4b798

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/etl_worker/etl_worker.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ func runPubSubHandler() error {
285285
// concurrently processed, but NOT the number of messages
286286
// in some kind of queue.
287287
sub.ReceiveSettings.MaxOutstandingMessages = int(maxInFlight)
288+
// The Receive function will automatically extend the deadline
289+
// to this value.
290+
// TODO(gfr) This may not be enough. Do we need to add logic
291+
// inside ProcessAllTests?
292+
sub.ReceiveSettings.MaxExtension = 600 * time.Second
288293

289294
// This seems to have no impact on the number of concurrent
290295
// messages, and each concurrently processed message is

0 commit comments

Comments
 (0)