Skip to content

Commit

Permalink
cleanup create omics workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jerowe committed Jan 22, 2024
1 parent 8706e22 commit b626dc1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bioanalyze_omics/resources/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ def list_runs(self):

def start_run(
self,
run_input: Dict,
output_uri: str,
workflow_id: str,
run_name: str,
Expand All @@ -283,6 +282,8 @@ def start_run(
aws_account_id = account.get_aws_account_id()
if not role_arn:
role_arn = f'arn:aws:iam::{aws_account_id}:role/OmicsFullAccessServiceRole'
if not tags:
tags = {}

dt_fmt = "%Y%m%dT%H%M%S"
ts = datetime.now().strftime(dt_fmt)
Expand All @@ -293,21 +294,20 @@ def start_run(
roleArn=role_arn,
parameters=parameters,
outputUri=output_uri,
runGroupId=run_group_id,
# runGroupId=run_group_id,
tags=tags,
storageCapacity=storage_capacity,
logLevel="ALL",
)

print(f"Workflow {workflow_id}, run group {run_group_id}, run {run['id']}")
log.info(
f"""
Submitted
Run : {run['id']}
WorkflowId : {workflow_id}
RunGroupId : {run_group_id}
Tags : {tags}
Parameters : {parameters}
Submitted
Run : {run['id']}
WorkflowId : {workflow_id}
RunGroupId : {run_group_id}
Tags : {tags}
Parameters : {parameters}
"""
)

Expand Down

0 comments on commit b626dc1

Please sign in to comment.