@@ -7,26 +7,26 @@ dotenv.config();
7
7
8
8
export async function run ( ) {
9
9
try {
10
- const run = await simpleChildTask . trigger ( { payload : { message : "Hello, World!" } } ) ;
10
+ const run = await simpleChildTask . trigger ( { message : "Hello, World!" } ) ;
11
11
const canceled = await runs . cancel ( run . id ) ;
12
12
console . log ( "canceled run" , canceled ) ;
13
13
14
14
const replayed = await runs . replay ( run . id ) ;
15
15
console . log ( "replayed run" , replayed ) ;
16
16
17
- const run2 = await simpleChildTask . trigger ( {
18
- payload : { message : "Hello, World!" } ,
19
- options : {
17
+ const run2 = await simpleChildTask . trigger (
18
+ { message : "Hello, World!" } ,
19
+ {
20
20
idempotencyKey : "mmvlgwcidiklyeygen4" ,
21
- } ,
22
- } ) ;
21
+ }
22
+ ) ;
23
23
24
- const run3 = await simpleChildTask . trigger ( {
25
- payload : { message : "Hello, World again!" } ,
26
- options : {
24
+ const run3 = await simpleChildTask . trigger (
25
+ { message : "Hello, World again!" } ,
26
+ {
27
27
idempotencyKey : "mmvlgwcidiklyeygen4" ,
28
- } ,
29
- } ) ;
28
+ }
29
+ ) ;
30
30
31
31
console . log ( "run2" , run2 ) ;
32
32
console . log ( "run3" , run3 ) ;
0 commit comments