Skip to content

ModelRegistry.is_pipeline_cached does not need network calls #1554

@sroussey

Description

@sroussey

Question

Assuming the #1548 is accepted, then if the right directory exists in cache, then we know it is a complete copy, so we don't need to check all the files (or you could if you wanted to verify cache, but that is a different operation really). So if the directory exists, it is cached.

You could add is_pipeline_cached_and_verified if you want. That could check sizes and everything to try and see that there is no corruption.

But is_pipeline_cached should be near instantaneous, just doing local cache access.

By the way, i love these additions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions