Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes edgecase where all run tasks have been cached
Browse files Browse the repository at this point in the history
markjschreiber committed Jan 6, 2025
1 parent cad81d8 commit d3761f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion omics/cli/run_analyzer/timeline.py
Original file line number Diff line number Diff line change
@@ -33,14 +33,17 @@ def _get_task_timings_data(tasks, time_units="min"):
]
if not filtered_tasks:
print(
"No tasks found with timing data, possibly all tasks were cached a plot cannot be created",
"No tasks found with timing data, possibly all tasks were cached, a plot cannot be created",
file=sys.stderr,
)
return pd.DataFrame()

tare = min([_parse_time_str(task["creationTime"]) for task in filtered_tasks])

for i, task in enumerate(filtered_tasks):
task["creationTime"] = _parse_time_str(task["creationTime"])
task["startTime"] = _parse_time_str(task["startTime"])
task["stopTime"] = _parse_time_str(task["stopTime"])
task["cpus"] = task.get("cpus", 0)
task["gpus"] = task.get("gpus", 0)
task["memory"] = task.get("memory", 0)

0 comments on commit d3761f8

Please sign in to comment.