Skip to content

Update fastq unarchiver step function to chunk fastq ids to prevent lambda timeouts #973

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

Merged
merged 1 commit into from
May 7, 2025

Conversation

alexiswl
Copy link
Member

@alexiswl alexiswl commented Apr 24, 2025

'Chunk' the get instrument run id list to prevent lambda timeouts

Instead get instrument run ids for every batch of 10 instrument run ids, use jsonata to merge the chunks at the end of the map

Instead get instrument run ids for every batch of 10 instrument run ids, use jsonata to merge at the end
@alexiswl alexiswl added bug Something isn't working fix labels Apr 24, 2025
@alexiswl alexiswl requested a review from Copilot April 24, 2025 01:53
@alexiswl alexiswl self-assigned this Apr 24, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request refactors the IAM policy statements used in the FastqUnarchivingManagerStack to better separate permissions and prevent lambda timeouts.

  • Removed extra actions from the initial IAM policy statement and added a new statement for the redrive execution action.
  • Updated the NagSuppressions call to include an additional resource ('distributedMapPolicy').
Files not reviewed (1)
  • lib/workload/stateless/stacks/fastq-unarchiving/app/step_functions_templates/run_s3_steps_copy_sfns_sfn_template.asl.json: Language not supported
Comments suppressed due to low confidence (2)

lib/workload/stateless/stacks/fastq-unarchiving/deploy/index.ts:377

  • Ensure that the removal of 'states:DescribeExecution' and 'states:StopExecution' from this policy statement is intentional and that any functionality relying on those permissions is addressed elsewhere.
actions: ['states:StartExecution'],

lib/workload/stateless/stacks/fastq-unarchiving/deploy/index.ts:409

  • Verify that 'distributedMapPolicy' is correctly defined and intended for inclusion in the NagSuppressions call to avoid potential runtime issues.
[runUnarchivingStateMachine, distributedMapPolicy],

@alexiswl alexiswl changed the title 'Chunk' the get instrument run id list to prevent lambda timeouts Update fastq unarchiver step function to chunk fastq ids to prevent lambda timeouts Apr 24, 2025
@alexiswl alexiswl added this pull request to the merge queue May 7, 2025
Merged via the queue into main with commit 319038d May 7, 2025
6 checks passed
@alexiswl alexiswl deleted the bugfix/batch-fastq-unarchiving-split branch May 7, 2025 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant