fix broken links
This commit is contained in:
@@ -70,7 +70,7 @@ export default defineConfig({
|
||||
});
|
||||
```
|
||||
|
||||
Read more about task lifecycle functions in the [tasks overview](/tasks-overview).
|
||||
Read more about task lifecycle functions in the [tasks overview](/tasks/overview).
|
||||
|
||||
## Instrumentations
|
||||
|
||||
@@ -116,7 +116,7 @@ export default defineConfig({
|
||||
});
|
||||
```
|
||||
|
||||
See our [Bun guide](/guides/bun) for more information.
|
||||
See our [Bun guide](/guides/frameworks/bun) for more information.
|
||||
|
||||
## Default machine
|
||||
|
||||
|
||||
@@ -9,12 +9,12 @@ When an uncaught error is thrown inside your task, that task attempt will fail.
|
||||
|
||||
You can configure retrying in two ways:
|
||||
|
||||
1. In your [trigger.config file](/trigger-config) you can set the default retrying behavior for all tasks.
|
||||
1. In your [trigger.config file](/config/config-file) you can set the default retrying behavior for all tasks.
|
||||
2. On each task you can set the retrying behavior.
|
||||
|
||||
<Note>
|
||||
By default when you create your project using the CLI init command we disabled retrying in the DEV
|
||||
environment. You can enable it in your [trigger.config file](/trigger-config).
|
||||
environment. You can enable it in your [trigger.config file](/config/config-file).
|
||||
</Note>
|
||||
|
||||
## A simple example with OpenAI
|
||||
|
||||
@@ -22,7 +22,7 @@ export default defineConfig({
|
||||
```
|
||||
|
||||
<Note>
|
||||
[Build extensions](../guides/build-extensions) allow you to hook into the build system and
|
||||
[Build extensions](/config/config-file#extensions) allow you to hook into the build system and
|
||||
customize the build process or the resulting bundle and container image (in the case of
|
||||
deploying). You can use pre-built extensions or create your own.
|
||||
</Note>
|
||||
|
||||
@@ -30,7 +30,7 @@ description: "This guide will show you how to create a new Trigger.dev project."
|
||||
<Card title="Quick start" icon="person-running-fast" href="/quick-start">
|
||||
Setup Trigger.dev in 3 minutes
|
||||
</Card>
|
||||
<Card title="Writing tasks" icon="wand-magic-sparkles" href="/tasks-overview">
|
||||
<Card title="Writing tasks" icon="wand-magic-sparkles" href="/tasks/overview">
|
||||
Learn what tasks are and how to write them
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
@@ -424,7 +424,7 @@ When you run `npx trigger.dev@latest dev`, we run your task code locally on your
|
||||
|
||||
<Note>
|
||||
Trigger.dev currently does not support "offline" dev mode, where you can run tasks without an
|
||||
internet connection. [Please let us know](feedback.trigger.dev) if this is a feature you
|
||||
internet connection. [Please let us know](https://feedback.trigger.dev/) if this is a feature you
|
||||
want/need.
|
||||
</Note>
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ Trigger.dev v3 makes it easy to write reliable long-running tasks without timeou
|
||||
|
||||
- We run your tasks with no timeouts. You don't have to manage any infrastructure (unless you [self-host](/open-source-self-hosting)). Workers are automatically scaled and managed for you.
|
||||
- We provide a multi-tenant queue that is used when triggering tasks.
|
||||
- We provide an SDK and CLI for writing tasks in your existing codebase, inside [/trigger folders](/trigger-folder).
|
||||
- We provide different types of tasks: [regular](/tasks-regular) and [scheduled](/tasks-scheduled).
|
||||
- We provide an SDK and CLI for writing tasks in your existing codebase, inside [/trigger folders](/config/config-file).
|
||||
- We provide different types of tasks: [regular](/tasks-regular) and [scheduled](/tasks/scheduled).
|
||||
- We provide a dashboard for monitoring, debugging, and managing your tasks.
|
||||
|
||||
We're [open source](https://github.com/triggerdotdev/trigger.dev) and you can choose to use the [Trigger.dev Cloud](https://cloud.trigger.dev) or [Self-host Trigger.dev](/open-source-self-hosting) on your own infrastructure.
|
||||
@@ -21,7 +21,7 @@ We're [open source](https://github.com/triggerdotdev/trigger.dev) and you can ch
|
||||
<Card title="Quick start guide" icon="person-running-fast" href="/quick-start">
|
||||
Get started in 3 minutes.
|
||||
</Card>
|
||||
<Card title="Writing tasks" icon="wand-magic-sparkles" href="/tasks-overview">
|
||||
<Card title="Writing tasks" icon="wand-magic-sparkles" href="/tasks/overview">
|
||||
Tasks are the core of Trigger.dev. Learn what they are and how to write them.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
@@ -242,7 +242,7 @@ export async function runLongRunningTask() {
|
||||
|
||||
#### Example 2: A cron task
|
||||
|
||||
We call these [scheduled tasks](/tasks-scheduled) in Trigger.dev.
|
||||
We call these [scheduled tasks](/tasks/scheduled) in Trigger.dev.
|
||||
|
||||
In Defer you might have a function like this:
|
||||
|
||||
@@ -272,6 +272,6 @@ export const sendMondayNewletter = schedules.task({
|
||||
|
||||
Then you need to attach a schedule to the task, either using the dashboard or in your code. You can attach unlimited schedules to a task.
|
||||
|
||||
<Card title="Attaching schedules" icon="clock" href="/tasks-scheduled">
|
||||
<Card title="Attaching schedules" icon="clock" href="/tasks/scheduled">
|
||||
How to attach a schedule to a task
|
||||
</Card>
|
||||
|
||||
@@ -83,6 +83,10 @@
|
||||
{
|
||||
"source": "/trigger-folder",
|
||||
"destination": "/config/config-file"
|
||||
},
|
||||
{
|
||||
"source": "/trigger-config",
|
||||
"destination": "/config/config-file"
|
||||
}
|
||||
],
|
||||
"anchors": [
|
||||
|
||||
@@ -47,7 +47,7 @@ Once you've created an account, follow the steps in the app to:
|
||||
<Card title="How to trigger your tasks" icon="bolt" href="/triggering">
|
||||
Learn how to trigger tasks from your code.
|
||||
</Card>
|
||||
<Card title="Writing tasks" icon="wand-magic-sparkles" href="/tasks-overview">
|
||||
<Card title="Writing tasks" icon="wand-magic-sparkles" href="/tasks/overview">
|
||||
Tasks are the core of Trigger.dev. Learn what they are and how to write them.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
## Useful next steps
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Tasks overview" icon="diagram-subtask" href="/tasks-overview">
|
||||
<Card title="Tasks overview" icon="diagram-subtask" href="/tasks/overview">
|
||||
Learn what tasks are and their options
|
||||
</Card>
|
||||
<Card title="Writing tasks" icon="pen-nib" href="/writing-tasks-introduction">
|
||||
|
||||
@@ -7,7 +7,7 @@ import OpenaiRetry from "/snippets/code/openai-retry.mdx"
|
||||
|
||||
They are defined using the `task()` function and can be [triggered](/triggering) from your backend or inside another task.
|
||||
|
||||
Like all tasks they don't have timeouts, they should be placed inside a [/trigger folder](/trigger-folder), and you [can configure them](/tasks-overview#defining-a-task).
|
||||
Like all tasks they don't have timeouts, they should be placed inside a [/trigger folder](/config/config-file), and you [can configure them](/tasks/overview#defining-a-task).
|
||||
|
||||
## Example tasks
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ You can see from the comments that the payload has several useful properties:
|
||||
to do that.
|
||||
</Note>
|
||||
|
||||
Like all tasks they don't have timeouts, they should be placed inside a [/trigger folder](/trigger-folder), and you [can configure them](/tasks-overview#defining-a-task).
|
||||
Like all tasks they don't have timeouts, they should be placed inside a [/trigger folder](/config/config-file), and you [can configure them](/tasks/overview#defining-a-task).
|
||||
|
||||
## How to attach a schedule
|
||||
|
||||
|
||||
+2
-2
@@ -20,11 +20,11 @@ Trigger tasks **from inside a run**:
|
||||
| `yourTask.triggerAndWait()` | Inside task | Triggers a task and then waits until it's complete. You get the result data to continue with. [Read more](#task-triggerandwait) |
|
||||
| `yourTask.batchTriggerAndWait()` | Inside task | Triggers a task multiple times in parallel and then waits until they're all complete. You get the resulting data to continue with. [Read more](#task-batchtriggerandwait) |
|
||||
|
||||
Additionally, [scheduled tasks](/tasks-scheduled) get **automatically** triggered on their schedule and webhooks when receiving a webhook.
|
||||
Additionally, [scheduled tasks](/tasks/scheduled) get **automatically** triggered on their schedule and webhooks when receiving a webhook.
|
||||
|
||||
## Scheduled tasks
|
||||
|
||||
You should attach one or more schedules to your `schedules.task()` to trigger it on a recurring schedule. [Read the scheduled tasks docs](/tasks-scheduled).
|
||||
You should attach one or more schedules to your `schedules.task()` to trigger it on a recurring schedule. [Read the scheduled tasks docs](/tasks/scheduled).
|
||||
|
||||
## Authentication
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ sidebarTitle: "Introduction"
|
||||
description: "Tasks are the core of Trigger.dev. They are long-running processes that are triggered by events."
|
||||
---
|
||||
|
||||
Before digging deeper into the details of writing tasks, you should read the [fundamentals of tasks](/tasks-overview) to understand what tasks are and how they work.
|
||||
Before digging deeper into the details of writing tasks, you should read the [fundamentals of tasks](/tasks/overview) to understand what tasks are and how they work.
|
||||
|
||||
## Writing tasks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user