Skip to content

Commit 1538f9a

Browse files
committed
[sdlf-stage-glue] max items per batch configurable through cfn parameter
1 parent 5d76e37 commit 1538f9a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

sdlf-stage-glue/src/glue.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ Parameters:
112112
pEnableTracing:
113113
Description: Flag for whether XRay tracing is enabled
114114
Type: String
115+
pMaxItemsPerBatch:
116+
Description: Maximum number of items to process per batch - each Glue job execution will process that many items, if available
117+
Type: Number
118+
Default: 5
115119
pGlueJobName:
116120
Description: Glue job name
117121
Type: String
@@ -523,6 +527,7 @@ Resources:
523527
DefinitionSubstitutions:
524528
lPostMetadata: !GetAtt rLambdaPostMetadataStep.Arn
525529
lError: !GetAtt rLambdaErrorStep.Arn
530+
lMaxItemsPerBatch: !Ref pMaxItemsPerBatch
526531
lTransform: !Ref pGlueJobName
527532
lWorkerType: !Ref pGlueWorkerType
528533
lNumberOfWorkers: !Ref pGlueNumberOfWorkers

sdlf-stage-glue/src/state-machine/stage-glue.asl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"MaxConcurrency": 50,
4242
"ToleratedFailurePercentage": 100,
4343
"ItemBatcher": {
44-
"MaxItemsPerBatch": 1
44+
"MaxItemsPerBatch": ${lMaxItemsPerBatch}
4545
},
4646
"InputPath": "$.Items",
4747
"Next": "Run Glue Crawler"

0 commit comments

Comments
 (0)