async def list_files(subpath: str, filepath) -> str: return manager.list_files( connection_type=settings.AGENT_CONFIG.artifacts_store, subpath=subpath, filepath=filepath, )
def get_events_files(run_uuid: str, event_kind: str) -> List[str]: subpath = get_event_path(run_path=run_uuid, kind=event_kind) files = list_files(subpath=subpath) if not files["files"]: return [] return sorted([f for f in files["files"].keys()])
def get_resources_files(run_uuid: str) -> List[str]: subpath = get_resource_path(run_path=run_uuid, kind=V1ArtifactKind.METRIC) files = list_files(subpath=subpath) if not files["files"]: return [] return sorted([f for f in files["files"].keys()])
def get_logs_files(run_uuid: str) -> List[str]: files = list_files(subpath="{}/logs".format(run_uuid)) if not files["files"]: return [] return sorted([f for f in files["files"].keys()])