-
Notifications
You must be signed in to change notification settings - Fork 1.2k
update queues default message retention value #12458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
d1354db
7cc6994
7b2dfea
6bd1a5e
a14f498
3fd0606
69a5489
97f5f3c
99b0261
c628ab3
7521764
822e134
5c52f4a
8364b1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "wrangler": minor | ||
| --- | ||
|
|
||
| removing default values for message retention and updating description to reflect different message retention limits for free tier queues (between 60 and 86400 seconds if on free tier, otherwise must be between 60 and 1209600 seconds) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -196,9 +196,6 @@ describe("wrangler", () => { | |
| if (queueSettings?.delivery_delay === undefined) { | ||
| queueSettings.delivery_delay = 0; | ||
| } | ||
|
||
| if (queueSettings?.message_retention_period === undefined) { | ||
| queueSettings.message_retention_period = 345600; | ||
| } | ||
jkoe-cf marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| msw.use( | ||
| http.post( | ||
|
|
@@ -252,8 +249,8 @@ describe("wrangler", () => { | |
| -v, --version Show version number [boolean] | ||
|
|
||
| OPTIONS | ||
| --delivery-delay-secs How long a published message should be delayed for, in seconds. Must be between 0 and 42300 [number] [default: 0] | ||
| --message-retention-period-secs How long to retain a message in the queue, in seconds. Must be between 60 and 1209600 [number] [default: 345600]" | ||
| --delivery-delay-secs How long a published message should be delayed for, in seconds. Must be between 0 and 43200 [number] [default: 0] | ||
| --message-retention-period-secs How long to retain a message in the queue, in seconds. Must be between 60 and 86400 if on free tier, otherwise must be between 60 and 1209600 [number]" | ||
| `); | ||
| }); | ||
| describe.each(["wrangler.json", "wrangler.toml"])("%s", (configPath) => { | ||
|
|
@@ -303,6 +300,7 @@ describe("wrangler", () => { | |
|
|
||
| it("should send queue settings with message retention period", async () => { | ||
| const requests = mockCreateRequest("testQueue", { | ||
| delivery_delay: 0, | ||
| message_retention_period: 100, | ||
| }); | ||
| await runWrangler( | ||
|
|
@@ -476,8 +474,8 @@ describe("wrangler", () => { | |
| -v, --version Show version number [boolean] | ||
|
|
||
| OPTIONS | ||
| --delivery-delay-secs How long a published message should be delayed for, in seconds. Must be between 0 and 42300 [number] | ||
| --message-retention-period-secs How long to retain a message in the queue, in seconds. Must be between 60 and 1209600 [number]" | ||
| --delivery-delay-secs How long a published message should be delayed for, in seconds. Must be between 0 and 43200 [number] | ||
| --message-retention-period-secs How long to retain a message in the queue, in seconds. Must be between 60 and 86400 if on free tier, otherwise must be between 60 and 1209600 [number]" | ||
petebacondarwin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| `); | ||
| }); | ||
|
|
||
|
|
||
devin-ai-integration[bot] marked this conversation as resolved.
Show resolved
Hide resolved
devin-ai-integration[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
Uh oh!
There was an error while loading. Please reload this page.