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 37ed751 commit 9594eb5Copy full SHA for 9594eb5
src/trigger/example.ts
@@ -4,13 +4,13 @@ export const helloWorldTask = task({
4
id: "hello-world",
5
// Set an optional maxDuration to prevent tasks from running indefinitely
6
maxDuration: 300, // Stop executing after 300 secs (5 mins) of compute
7
- run: async (payload: any, { ctx }) => {
+ run: async (payload, { ctx }) => {
8
logger.log("Hello, world!", { payload, ctx });
9
10
await wait.for({ seconds: 5 });
11
12
return {
13
message: "Hello, world!",
14
- }
+ };
15
},
16
-});
+});
0 commit comments