We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 541e17a commit f8d6a8cCopy full SHA for f8d6a8c
docs/tasks/overview.mdx
@@ -33,11 +33,11 @@ You can trigger this in two ways:
33
Here's how to trigger a single run from elsewhere in your code:
34
35
```ts Your backend code
36
-import { helloWorldTask } from "./trigger/hello-world";
+import { helloWorld } from "./trigger/hello-world";
37
38
async function triggerHelloWorld() {
39
//This triggers the task and returns a handle
40
- const handle = await helloWorldTask.trigger({ message: "Hello world!" });
+ const handle = await helloWorld.trigger({ message: "Hello world!" });
41
42
//You can use the handle to check the status of the task, cancel and retry it.
43
console.log("Task is running with handle", handle.id);
0 commit comments