Skip to content

Commit

Permalink
Update clag to handle large amounts of fastq files (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiswl authored Feb 3, 2025
1 parent 9e93ac3 commit e485160
Show file tree
Hide file tree
Showing 3 changed files with 363 additions and 1,908 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export class NewFastqListRowsEventShowerConstruct extends Construct {
subject: 'subject',
library: 'library',
project: 'project',
projectEvent: 'project_event',
fastqListRow: 'fastq_list_row',
fastqListRowEvent: 'fastq_list_row_event',
},
// Set Event Triggers
triggerSource: 'orcabus.workflowmanager',
Expand Down Expand Up @@ -106,6 +108,14 @@ export class NewFastqListRowsEventShowerConstruct extends Construct {
handler: 'handler',
runtime: Runtime.PYTHON_3_12,
architecture: Architecture.ARM_64,
timeout: Duration.seconds(300),
environment: {
INSTRUMENT_RUN_TABLE_NAME: props.tableObj.tableName,
FASTQ_LIST_ROW_EVENT_OBJ_TABLE_PARTITION_NAME:
this.newFastqListRowsEventShowerMap.tablePartition.fastqListRowEvent,
PROJECT_EVENT_OBJ_TABLE_PARTITION_NAME:
this.newFastqListRowsEventShowerMap.tablePartition.projectEvent,
},
}
);

Expand Down Expand Up @@ -231,6 +241,10 @@ export class NewFastqListRowsEventShowerConstruct extends Construct {
this.newFastqListRowsEventShowerMap.tablePartition.project,
__fastq_list_row_table_partition_name__:
this.newFastqListRowsEventShowerMap.tablePartition.fastqListRow,
__project_event_table_partition_name__:
this.newFastqListRowsEventShowerMap.tablePartition.projectEvent,
__fastq_list_row_event_table_partition_name__:
this.newFastqListRowsEventShowerMap.tablePartition.fastqListRowEvent,

/* Lambda functions */
__decompress_fastq_list_rows_lambda_function_arn__:
Expand Down Expand Up @@ -265,6 +279,9 @@ export class NewFastqListRowsEventShowerConstruct extends Construct {
lambda.currentVersion.grantInvoke(this.stateMachineObj.role);
});

/* Allow 'Generate Event data objs' lambda to write to the dynamodb database */
props.tableObj.grantReadWriteData(generateEventDataObjsLambda.currentVersion);

/* Allow state machine to send events */
props.eventBusObj.grantPutEventsTo(this.stateMachineObj);

Expand Down
Loading

0 comments on commit e485160

Please sign in to comment.