Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/wrangler/src/__tests__/queues/queues.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ describe("wrangler", () => {
queueSettings.delivery_delay = 0;
}
if (queueSettings?.message_retention_period === undefined) {
queueSettings.message_retention_period = 345600;
queueSettings.message_retention_period = 72000;
}

msw.use(
Expand Down Expand Up @@ -253,7 +253,7 @@ describe("wrangler", () => {

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]"
--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] [default: 72000]"
`);
});
describe.each(["wrangler.json", "wrangler.toml"])("%s", (configPath) => {
Expand Down Expand Up @@ -477,7 +477,7 @@ describe("wrangler", () => {

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]"
--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]"
`);
});

Expand Down
4 changes: 2 additions & 2 deletions packages/wrangler/src/queues/cli/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const queuesCreateCommand = createCommand({
"message-retention-period-secs": {
type: "number",
describe:
"How long to retain a message in the queue, in seconds. Must be between 60 and 1209600",
default: 345600,
"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",
default: 72000,
},
},
positionalArgs: ["name"],
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/queues/cli/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const queuesUpdateCommand = createCommand({
"message-retention-period-secs": {
type: "number",
describe:
"How long to retain a message in the queue, in seconds. Must be between 60 and 1209600",
"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",
},
},
positionalArgs: ["name"],
Expand Down
Loading