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

chore: start tasks based on processing batch size in the queue-processing example #220

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

luigidifraiawork
Copy link
Contributor

@luigidifraiawork luigidifraiawork commented Jun 15, 2024

Description

Start tasks based on processing batch size in the queue-processing example. Changes were implemented on top of #219.

Motivation and Context

In presence of a number of files less or equal than batch size (10) uploaded to the source bucket, the Lambda function was going to start just as many tasks. This is not required as each task is implemented to process files in batches.
This PR implements the intended approach, as confirmed in the documentation for the queue-processing blueprint:

Lambda will launch (ApproximateNumberofMessages/10) upto a max of 10 tasks.

How Has This Been Tested?

  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@luigidifraiawork luigidifraiawork force-pushed the chore/lambda-tasks-batch-size branch from b2c0d87 to 021b69c Compare June 15, 2024 07:37
@luigidifraiawork luigidifraiawork marked this pull request as ready for review June 17, 2024 08:57
@luigidifraiawork luigidifraiawork requested a review from a team as a code owner June 17, 2024 08:57
@joozero joozero merged commit 512eed8 into aws-ia:main Jul 1, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants