Skip to content

Commit

Permalink
fix: limit concurrency for api spec updates (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo authored Jun 21, 2024
1 parent 1edbc32 commit 44ff4bd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion servers/fern-bot/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ functions:
# Processes one repo at a time, from the updateRepoDataset metadata
updateOpenApiSpec:
timeout: 900
memorySize: 10240
memorySize: 5120
ephemeralStorageSize: 10240
handler: "src/functions/oas-cron/updateOpenApiSpec.handler"
layers:
Expand Down Expand Up @@ -98,6 +98,7 @@ stepFunctions:
Next: UpdateSpecsInRepo
UpdateSpecsInRepo:
Type: Map
MaxConcurrency: 50
ItemReader:
ReaderConfig:
InputType: CSV
Expand All @@ -120,7 +121,15 @@ stepFunctions:
FunctionName:
Fn::GetAtt: [updateOpenApiSpec, Arn]
End: true
# Try to discard whatever result AWS has for us
# since we'll hit a size limit otherwise, and
# the output is useless to us.
ResultPath: null
OutputPath: null
End: true
# Same as above, try to discard the result
ResultPath: null
OutputPath: null

resources:
Resources:
Expand Down

0 comments on commit 44ff4bd

Please sign in to comment.