@remit/sqs-client 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/poller.ts +7 -1
package/package.json
CHANGED
package/src/poller.ts
CHANGED
|
@@ -61,7 +61,13 @@ export interface RunQueuePollerOptions {
|
|
|
61
61
|
// the extra receive per message is a millisecond against the local queue
|
|
62
62
|
// sidecar — the same total work either way.
|
|
63
63
|
const DEFAULT_MAX_MESSAGES = 1;
|
|
64
|
-
|
|
64
|
+
/**
|
|
65
|
+
* What a handler has before the queue redelivers the record underneath it.
|
|
66
|
+
* Exported because a handler that budgets its own wait has to agree with it;
|
|
67
|
+
* `deploy/vps/queues.json` sets the same number on the queue itself, and this
|
|
68
|
+
* is the one that applies wherever a target passes no override.
|
|
69
|
+
*/
|
|
70
|
+
export const DEFAULT_VISIBILITY_TIMEOUT_SECONDS = 300;
|
|
65
71
|
|
|
66
72
|
const pollTarget = async (
|
|
67
73
|
target: QueuePollerTarget,
|