Skip to content

Commit 813ec74

Browse files
committed
Increased the intervalTrigger max from 1 day to 30 days
1 parent 03db131 commit 813ec74

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/sdk/dynamicschedule/register.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ description: "Use this method to register a new schedule with the DynamicSchedul
8787
An object containing options about the interval.
8888
<Expandable title="options" defaultOpen>
8989
<ResponseField name="seconds" type="number" required>
90-
The number of seconds for the interval. Min = 60, Max = 86400 (1 day)
90+
The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days)
9191
</ResponseField>
9292
</Expandable>
9393
</ResponseField>

docs/sdk/intervaltrigger.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Intervals are set with a number of seconds. There are some important considerati
1313

1414
- The Job will first run the specified number of seconds after it has first connected to an [Environment](/documentation/concepts/environments-endpoints). This will happen when you first [deploy](/documentation/guides/deployment) that Job.
1515
- The minimum interval is 60 seconds (any input less than this it will default to 60).
16-
- The maximum interval is 86400 seconds (24 hours), if you pass more than this it will trigger every 24 hours.
16+
- The maximum interval is 2_592_000 seconds (30 days), if you pass more than this it will trigger every 30 days.
1717

1818
If you wish to Run a Job at an exact time or less frequently than once pr day you should use a [cronTrigger()](/sdk/crontrigger) instead.
1919

@@ -22,7 +22,7 @@ If you wish to Run a Job at an exact time or less frequently than once pr day yo
2222
<ResponseField name="options" type="object" required>
2323
<Expandable title="options" defaultOpen>
2424
<ResponseField name="seconds" type="number" required>
25-
The number of seconds for the interval. Min = 60, Max = 86400 (1 day)
25+
The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days)
2626
</ResponseField>
2727
</Expandable>
2828
</ResponseField>

docs/sdk/io/registerinterval.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ description: "`io.registerInterval()` allows you to register a [DynamicSchedule]
2323

2424
<Expandable title="options" defaultOpen>
2525
<ResponseField name="seconds" type="number" required>
26-
The number of seconds for the interval. Min = 60, Max = 86400 (1 day)
26+
The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days)
2727
</ResponseField>
2828
</Expandable>
2929

@@ -51,7 +51,7 @@ A Promise that resolves to an object with the following fields:
5151
An object containing options about the interval.
5252
<Expandable title="options" defaultOpen>
5353
<ResponseField name="seconds" type="number" required>
54-
The number of seconds for the interval. Min = 60, Max = 86400 (1 day)
54+
The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days)
5555
</ResponseField>
5656
</Expandable>
5757
</ResponseField>

packages/core/src/schemas/schedules.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export const ScheduledPayloadSchema = z.object({
1010
export type ScheduledPayload = z.infer<typeof ScheduledPayloadSchema>;
1111

1212
export const IntervalOptionsSchema = z.object({
13-
/** The number of seconds for the interval. Min = 60, Max = 86400 (1 day) */
14-
seconds: z.number().int().positive().min(60).max(86400),
13+
/** The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days) */
14+
seconds: z.number().int().positive().min(60).max(2_592_000),
1515
});
1616

1717
/** Interval options */

0 commit comments

Comments
 (0)