Ejemplo n.º 1
0
async def list_files(subpath: str, filepath) -> str:
    return manager.list_files(
        connection_type=settings.AGENT_CONFIG.artifacts_store,
        subpath=subpath,
        filepath=filepath,
    )
Ejemplo n.º 2
0
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()])
Ejemplo n.º 3
0
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()])
Ejemplo n.º 4
0
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()])