File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
references/v3-catalog/src/trigger Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,16 @@ export const checkpointBatchResumer = task({
18
18
/** Test that checkpoints and resuming works if the checkpoint isn't created before the resume */
19
19
export const checkpointResumer = task ( {
20
20
id : "checkpoint-resume" ,
21
+ queue : {
22
+ concurrencyLimit : 1 ,
23
+ } ,
21
24
run : async ( { count = 1 } : Payload ) => {
22
- await noop . triggerAndWait ( ) ;
23
- logger . info ( `Successfully 1/3 resumed` ) ;
24
- await noop . triggerAndWait ( ) ;
25
- logger . info ( `Successfully 2/3 resumed` ) ;
26
- await noop . triggerAndWait ( ) ;
27
- logger . info ( `Successfully 3/3 resumed` ) ;
25
+ logger . info ( `Starting ${ count } runs` ) ;
26
+
27
+ for ( let i = 0 ; i < count ; i ++ ) {
28
+ await noop . triggerAndWait ( ) ;
29
+ logger . info ( `Successfully ${ i + 1 } / ${ count } resumed` ) ;
30
+ }
28
31
} ,
29
32
} ) ;
30
33
You can’t perform that action at this time.
0 commit comments