Skip to content

Commit f63930a

Browse files
authored
Merge branch 'main' into add/model-checkpoint-management
2 parents 5f1f391 + fb3d106 commit f63930a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "transformerlab"
7-
version = "0.0.32"
7+
version = "0.0.33"
88
description = "Python SDK for Transformer Lab"
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/lab/experiment.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ def create_job(self):
116116
new_job = Job.create(new_job_id)
117117
new_job.set_experiment(self.id)
118118

119+
# Update jobs index now that a new job exists
120+
self.rebuild_jobs_index()
121+
119122
return new_job
120123

121124
def get_jobs(self, type: str = "", status: str = ""):
@@ -125,10 +128,6 @@ def get_jobs(self, type: str = "", status: str = ""):
125128
status: If not blank, filter by jobs with this status.
126129
"""
127130

128-
# Rebuild the index
129-
# TODO: The point of the index is to not do this every time
130-
self.rebuild_jobs_index()
131-
132131
# First get jobs of the passed type
133132
job_list = []
134133
if type:

0 commit comments

Comments
 (0)