Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sdlf-stage-glue] max items per batch configurable through cfn parameter #493

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sdlf-stage-glue/src/glue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ Parameters:
pEnableTracing:
Description: Flag for whether XRay tracing is enabled
Type: String
pMaxItemsPerBatch:
Description: Maximum number of items to process per batch - each Glue job execution will process that many items, if available
Type: Number
Default: 5
pGlueJobName:
Description: Glue job name
Type: String
Expand Down Expand Up @@ -523,6 +527,7 @@ Resources:
DefinitionSubstitutions:
lPostMetadata: !GetAtt rLambdaPostMetadataStep.Arn
lError: !GetAtt rLambdaErrorStep.Arn
lMaxItemsPerBatch: !Ref pMaxItemsPerBatch
lTransform: !Ref pGlueJobName
lWorkerType: !Ref pGlueWorkerType
lNumberOfWorkers: !Ref pGlueNumberOfWorkers
Expand Down
2 changes: 1 addition & 1 deletion sdlf-stage-glue/src/state-machine/stage-glue.asl.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"MaxConcurrency": 50,
"ToleratedFailurePercentage": 100,
"ItemBatcher": {
"MaxItemsPerBatch": 1
"MaxItemsPerBatch": ${lMaxItemsPerBatch}
},
"InputPath": "$.Items",
"Next": "Run Glue Crawler"
Expand Down
Loading