Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Run artifact_uri should return None if not set #3266

@sbatchelder

Description

@sbatchelder

🚀 Feature

If I do run.artifact_uri should return None if run.set_artifact_uri(...) has not been set yet.

Motivation

I'd like to check whether a run's artifact_uri has been set yet or not, so as to know programatically whether it needs to be set or whether it's safe to run run.log_artifact(...)

Pitch

In run.artifact_uri property function, after base_uri, add if base_uri is None: return None

Alternatives

I could use the try: ... except: ... pattern whenever I go to log and artifact or check that artifact_uri is set, but that's a bit cumbersome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions