Skip to content

Commit

Permalink
Merge pull request #75 from lilab-bcb/aws-omics-name
Browse files Browse the repository at this point in the history
get task name and share for aws omics
  • Loading branch information
yihming authored Jun 7, 2024
2 parents a86f078 + 259790c commit aedf3f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion alto/commands/parse_monitoring_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,19 @@ def get_task_and_shard(log_path):
p = p.parent
shard_name = p.parent.name

if shard_name.startswith("shard-"):
if shard_name.startswith("shard-") or shard_name.isdigit():
task_name = p.parent.parent.name
else:
task_name = shard_name
shard_name = ""

if task_name.startswith("call-"):
task_name = task_name[len("call-") :]
elif task_name.endswith("_monitoring_log"):
task_name = task_name[: -len("_monitoring_log")]
# gs://output/cromwell_execution/xxx_workflow/92f48dc5-6/call-xxx_task/shard-0/monitoring.log
# gs://output/cromwell_execution/xxx_workflow/92f48dc5-6/call-xxx_task/shard-0/cacheCopy/monitoring.log
# aws-omics: task_monitoring_log/0/monitoring.log
return task_name, shard_name


Expand Down

0 comments on commit aedf3f9

Please sign in to comment.