Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Allow to pass workspace/run name or id in initialization #108

Open
Jeffwan opened this issue Aug 7, 2019 · 1 comment
Open

Allow to pass workspace/run name or id in initialization #108

Jeffwan opened this issue Aug 7, 2019 · 1 comment

Comments

@Jeffwan
Copy link
Member

Jeffwan commented Aug 7, 2019

/kind feature

I am trying to understand the best practice here.

  1. If I have training job runs once every day, should I create one Run for it and create a Execution every day?

If that's true, I think I only need to create one Workspace and one Run. Consider the SDK init, seems I have to get object and pass as parameter. Could we pass id or name as parameter and it would be easier to use.

  1. If I have a Kubeflow pipeline, is run here equivalent to pipeline concept there?

Since it has more steps and components, what's the best practice?

Have to pass workspace and run object to create instance.

test_run = metadata.Run(
    workspace=workspace,
    name="run-" + datetime.utcnow().isoformat("T") ,
    description="a run in workspace",
)

exec = metadata.Execution(
    name = "execution" + datetime.utcnow().isoformat("T") ,
    workspace=test_workspace,
    run=test_run,
    description="execution example",
)
print("An execution is create with id %s" % exec.id)
@jtfogarty
Copy link

/kind question
/area engprod
/priority p2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants