@vercel/queue
Advanced tools
+2
-2
@@ -263,3 +263,3 @@ /** | ||
| * @minimum 60 (1 minute) | ||
| * @maximum 86400 (24 hours) | ||
| * @maximum 604800 (7 days) | ||
| */ | ||
@@ -272,3 +272,3 @@ retentionSeconds?: number; | ||
| * @minimum 0 | ||
| * @maximum Value of retentionSeconds (delay cannot exceed retention) | ||
| * @maximum 432000 (5 days, and cannot exceed retentionSeconds) | ||
| */ | ||
@@ -275,0 +275,0 @@ delaySeconds?: number; |
+2
-2
@@ -263,3 +263,3 @@ /** | ||
| * @minimum 60 (1 minute) | ||
| * @maximum 86400 (24 hours) | ||
| * @maximum 604800 (7 days) | ||
| */ | ||
@@ -272,3 +272,3 @@ retentionSeconds?: number; | ||
| * @minimum 0 | ||
| * @maximum Value of retentionSeconds (delay cannot exceed retention) | ||
| * @maximum 432000 (5 days, and cannot exceed retentionSeconds) | ||
| */ | ||
@@ -275,0 +275,0 @@ delaySeconds?: number; |
+1
-1
| { | ||
| "name": "@vercel/queue", | ||
| "version": "0.1.4", | ||
| "version": "0.1.5", | ||
| "publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
+9
-9
@@ -95,3 +95,3 @@ # Vercel Queues | ||
| idempotencyKey: "unique-key", // Prevent duplicate messages | ||
| retentionSeconds: 3600, // 1 hour TTL (default: 24h) | ||
| retentionSeconds: 3600, // 1 hour TTL (default: 24h, max: 7d) | ||
| delaySeconds: 60, // Delay delivery by 1 minute | ||
@@ -278,3 +278,3 @@ region: "sfo1", // Top-level send() only — not available on QueueClient.send() | ||
| When a handler throws, the message is not acknowledged and becomes available for redelivery after the `retryAfterSeconds` interval configured in `vercel.json`. Retries continue until the handler succeeds or the message expires (default: 24 hours). | ||
| When a handler throws, the message is not acknowledged and becomes available for redelivery after the `retryAfterSeconds` interval configured in `vercel.json`. Retries continue until the handler succeeds or the message expires (default: 24 hours, max: 7 days). | ||
@@ -575,7 +575,7 @@ For finer control over retry timing, pass a `retry` option. You can also set `visibilityTimeoutSeconds` to control how long the message is locked during processing (default: 300): | ||
| | Parameter | Default | Min | Max | Notes | | ||
| | ------------------ | ------------ | --- | ----------- | ----------------------------------- | | ||
| | `retentionSeconds` | 86,400 (24h) | 60 | 86,400 | Message TTL | | ||
| | `delaySeconds` | 0 | 0 | ≤ retention | Cannot exceed retention | | ||
| | `idempotencyKey` | — | — | — | Dedup window: `min(retention, 24h)` | | ||
| | Parameter | Default | Min | Max | Notes | | ||
| | ------------------ | ------------ | --- | ------------ | ----------------------------------- | | ||
| | `retentionSeconds` | 86,400 (24h) | 60 | 604,800 (7d) | Message TTL | | ||
| | `delaySeconds` | 0 | 0 | 432,000 (5d) | Cannot exceed retention | | ||
| | `idempotencyKey` | — | — | — | Dedup window: `min(retention, 24h)` | | ||
@@ -626,4 +626,4 @@ #### Receiving Messages | ||
| idempotencyKey: "unique-key", // Dedup window: min(retention, 24h) | ||
| retentionSeconds: 3600, // Message TTL (default: 86400) | ||
| delaySeconds: 60, // Delay before visible (default: 0) | ||
| retentionSeconds: 3600, // Message TTL (default: 86400, max: 604800) | ||
| delaySeconds: 60, // Delay before visible (default: 0, max: 5d) | ||
| headers: { "X-Custom": "val" }, // Custom headers | ||
@@ -630,0 +630,0 @@ region: "sfo1", // Override the auto-detected region for this send |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
600459
0