Skip to content

Commit 13feb29

Browse files
Update src/dstack/api/_public/runs.py
Co-authored-by: jvstme <36324149+jvstme@users.noreply.github.com>
1 parent 91b9311 commit 13feb29

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/dstack/api/_public/runs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,8 @@ def list(self, all: bool = False, limit: Optional[int] = None) -> List[Run]:
715715
runs = self._api_client.runs.list(
716716
project_name=self._project,
717717
repo_id=None,
718-
limit=limit or 100,
719-
)[:1]
718+
limit=1,
719+
)
720720
return [self._model_to_run(run) for run in runs]
721721

722722
def get(self, run_name: str) -> Optional[Run]:

0 commit comments

Comments
 (0)