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 f0c250f commit 98fad73Copy full SHA for 98fad73
references/hello-world/src/trigger/example.ts
@@ -26,6 +26,14 @@ export const parentTask = task({
26
},
27
});
28
29
+export const batchParentTask = task({
30
+ id: "batch-parent",
31
+ run: async (payload: any, { ctx }) => {
32
+ logger.log("Hello, world from the parent", { payload });
33
+ await childTask.batchTriggerAndWait([{ payload: { message: "Hello, world!" } }]);
34
+ },
35
+});
36
+
37
export const childTask = task({
38
id: "child",
39
run: async (payload: any, { ctx }) => {
0 commit comments