Skip to content

Commit c2abb8a

Browse files
committed
CRON -> cron/Cron
1 parent 5aaa6b7 commit c2abb8a

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const pricingDefinitions = {
119119
},
120120
schedules: {
121121
title: "Schedules",
122-
content: "You can attach recurring schedules to tasks using CRON syntax.",
122+
content: "You can attach recurring schedules to tasks using cron syntax.",
123123
},
124124
alerts: {
125125
title: "Alert destination",

docs/migration-defer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export async function runLongRunningTask() {
240240
to trigger tasks from your code. See the [API keys page](/apikeys) for more information.
241241
</Warning>
242242

243-
#### Example 2: A CRON task
243+
#### Example 2: A cron task
244244

245245
We call these [scheduled tasks](/tasks-scheduled) in Trigger.dev.
246246

docs/tasks-scheduled.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Scheduled tasks (cron)"
3-
description: "A task that is triggered on a recurring schedule using CRON syntax."
3+
description: "A task that is triggered on a recurring schedule using cron syntax."
44
---
55

66
## Defining a scheduled task
@@ -120,7 +120,7 @@ To use imperative schedules you need to do two things:
120120
1. Define a task in your code using `schedules.task()`.
121121
2. Attach 1+ schedules to the task either using the dashboard or the SDK.
122122

123-
## Supported CRON syntax
123+
## Supported cron syntax
124124

125125
```
126126
* * * * *
@@ -135,7 +135,7 @@ To use imperative schedules you need to do two things:
135135

136136
"L" means the last. In the "day of week" field, 1L means the last Monday of the month. In the "day of month" field, L means the last day of the month.
137137

138-
We do not support seconds in the CRON syntax.
138+
We do not support seconds in the cron syntax.
139139

140140
## When schedules won't trigger
141141

@@ -165,7 +165,7 @@ These are the options when creating a schedule:
165165
| Name | Description |
166166
| ----------------- | --------------------------------------------------------------------------------------------- |
167167
| Task | The id of the task you want to attach to. |
168-
| CRON pattern | The schedule in CRON format. |
168+
| Cron pattern | The schedule in cron format. |
169169
| Timezone | The timezone the schedule will run in. Defaults to "UTC" |
170170
| External id | An optional external id, usually you'd use a userId. |
171171
| Deduplication key | An optional deduplication key. If you pass the same value, it will update rather than create. |
@@ -183,7 +183,7 @@ You call `schedules.create()` to create a schedule from your code. Here's the si
183183
const createdSchedule = await schedules.create({
184184
//The id of the scheduled task you want to attach to.
185185
task: firstScheduledTask.id,
186-
//The schedule in CRON format.
186+
//The schedule in cron format.
187187
cron: "0 0 * * *",
188188
//this is required, it prevents you from creating duplicate schedules. It will update the schedule if it already exists.
189189
deduplicationKey: "my-deduplication-key",
@@ -200,14 +200,14 @@ This means you can have thousands of schedules attached to a single task, but on
200200
const createdSchedule = await schedules.create({
201201
//The id of the scheduled task you want to attach to.
202202
task: firstScheduledTask.id,
203-
//The schedule in CRON format.
203+
//The schedule in cron format.
204204
cron: "0 0 * * *",
205205
// Optional, it defaults to "UTC". In IANA format, e.g. "America/New_York".
206206
// In this case, the task will run at midnight every day in New York time.
207207
// If you specify a timezone it will automatically work with daylight saving time.
208208
timezone: "America/New_York",
209209
//Optionally, you can specify your own IDs (like a user ID) and then use it inside the run function of your task.
210-
//This allows you to have per-user CRON tasks.
210+
//This allows you to have per-user cron tasks.
211211
externalId: "user_123456",
212212
//You can only create one schedule with this key.
213213
//If you use it twice, the second call will update the schedule.

docs/wait-for.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ export const veryLongTask = task({
2828
});
2929
```
3030

31-
This allows you to write linear code without having to worry about the complexity of scheduling or managing CRON jobs.
31+
This allows you to write linear code without having to worry about the complexity of scheduling or managing cron jobs.
3232

3333
<PausedExecutionFree />

docs/wait-until.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const sendReminderEmail = task({
2525
});
2626
```
2727

28-
This allows you to write linear code without having to worry about the complexity of scheduling or managing CRON jobs.
28+
This allows you to write linear code without having to worry about the complexity of scheduling or managing cron jobs.
2929

3030
<PausedExecutionFree />
3131

0 commit comments

Comments
 (0)