awslabs / amazon-omics-tools

Apache License 2.0
19 stars 6 forks source link

Properly set workflow type for rerun #41

Closed WIIASD closed 3 months ago

WIIASD commented 3 months ago

Issue #, if available:

https://github.com/awslabs/amazon-omics-tools/issues/39

Description of changes:

We are not properly setting workflowType field when --workflow-type is not passed in by customer. This change ensures we default workflowType to the same as input run for the rerun tool

Testing

Tested the following commands, all worked as expected:

python3 -m omics.cli.rerun 2420306 
python3 -m omics.cli.rerun 2420306 --workflow-id 1830181
python3 -m omics.cli.rerun 2420306 --run-id 2420306 (this was triggering the same bug before as well)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.