generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or request
Description
This bit of code is iterating over a list, and modifying the list it is iterating over.
https://github.com/awslabs/amazon-omics-tools/blob/main/omics/cli/run_analyzer/batch.py#L37-L45
A safer approach might be:
task_names = set()
for run_resources in run_resources_list:
filtered_resources = [res for res in run_resources if "task" in res["arn"]]
for res in filtered_resources:
main.add_metrics(res, filtered_resources, pricing, headroom)
task_names.add(utils.task_base_name(res["name"], engine))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request