From f8b5ec409cd3e6da0e2505ae5d4cf3198cf4ed4e Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 9 Apr 2024 16:53:46 +0100 Subject: [PATCH] Add queue_position to ClusterRunResult (#447) --- pipeline/cloud/schemas/runs.py | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pipeline/cloud/schemas/runs.py b/pipeline/cloud/schemas/runs.py index 156ba22b..8b79fd2f 100644 --- a/pipeline/cloud/schemas/runs.py +++ b/pipeline/cloud/schemas/runs.py @@ -271,6 +271,9 @@ class ClusterRunResult(ContainerRunResult): state: RunState + # queue position if run is in 'queued' state + queue_position: int | None = None + class Config: orm_mode = True diff --git a/pyproject.toml b/pyproject.toml index abdc5592..81fe6ab1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pipeline-ai" -version = "2.1.4" +version = "2.1.5" description = "Pipelines for machine learning workloads." authors = [ "Paul Hetherington ",