@@ -906,7 +906,10 @@ def get_logs(self, last_file=None, last_time=None) -> "V1Logs":
906906 self .refresh_data ()
907907 self ._use_agent_host ()
908908 params = get_logs_params (
909- last_file = last_file , last_time = last_time , connection = self .artifacts_store
909+ last_file = last_file ,
910+ last_time = last_time ,
911+ connection = self .artifacts_store ,
912+ kind = self .run_data .kind ,
910913 )
911914 return self .client .runs_v1 .get_run_logs (
912915 self .namespace , self .owner , self .project , self .run_uuid , ** params
@@ -931,7 +934,12 @@ def inspect(self):
931934 self ._use_agent_host ()
932935 params = get_streams_params (connection = self .artifacts_store , status = self .status )
933936 return self .client .runs_v1 .inspect_run (
934- self .namespace , self .owner , self .project , self .run_uuid , ** params
937+ self .namespace ,
938+ self .owner ,
939+ self .project ,
940+ self .run_uuid ,
941+ self .run_data .kind ,
942+ ** params ,
935943 )
936944
937945 @client_handler (check_no_op = True , check_offline = True )
@@ -2627,6 +2635,7 @@ def list(
26272635 sort : Optional [str ] = None ,
26282636 limit : Optional [int ] = None ,
26292637 offset : Optional [int ] = None ,
2638+ all_projects : bool = False ,
26302639 ):
26312640 """Lists runs under the current owner - project.
26322641
@@ -2639,13 +2648,18 @@ def list(
26392648 [Run PQL](/docs/core/query-language/runs/#sort)
26402649 limit: int, optional, limit of runs to return.
26412650 offset: int, optional, offset pages to paginate runs.
2651+ all_projects: bool, optional, default: False
26422652
26432653 Returns:
26442654 List[V1Run], list of run instances.
26452655 """
26462656 params = get_query_params (
26472657 limit = limit or 20 , offset = offset , query = query , sort = sort
26482658 )
2659+ if all_projects :
2660+ return self .client .organizations_v1 .get_organization_runs (
2661+ self .owner , ** params
2662+ )
26492663 return self .client .runs_v1 .list_runs (self .owner , self .project , ** params )
26502664
26512665 @client_handler (check_no_op = True , check_offline = True )
0 commit comments