terraform-provider-iterative icon indicating copy to clipboard operation
terraform-provider-iterative copied to clipboard

`task`: optionally download data on `refresh`

Open DavidGOrtega opened this issue 3 years ago • 6 comments

Im missing the capability to retrieve the intermediate data at any point. Maybe we could add a flag (resource property) like pullOnRefresh

DavidGOrtega avatar Nov 25 '21 13:11 DavidGOrtega

🙈 I wouldn't want to pull data every time I want to check the logs. Still, this might have some valid use cases. 🤷🏼‍♂️

0x2b3bfa0 avatar Nov 25 '21 15:11 0x2b3bfa0

I wouldn't want

YOU wouldn't want, someone else might want to download the latest trained model epoch to test

pull data every time I want to check the logs.

In reality you would just pull latest model eventually due to the sync so you can still pull logs insanely before hitting a model download

DavidGOrtega avatar Nov 25 '21 15:11 DavidGOrtega

In any case I think that the flag could be transient. It we change it we can then apply and make it effective

DavidGOrtega avatar Nov 25 '21 15:11 DavidGOrtega

We also need to pull metrics (data files) when a job is running

dmpetrov avatar Dec 20 '21 04:12 dmpetrov

Actually, I'm not sure about refresh. It might be better to sync status & logs as part of refresh and sync data with another command.

@DavidGOrtega could you please clarify what do you mean by the flag? How it will look like?

dmpetrov avatar Dec 20 '21 04:12 dmpetrov

@dmpetrov when we create the task we can specify if this feature is enabled. Opposed to many of them that property does not destroy the task if changes.

resource "iterative_task" "tpi-examples-gpu" {
    name      = "tpi-examples-gpu"
    cloud     = "az"
    region    = "us-east"
    machine   = "Standard_NC6"
    spot      = 0
    directory = "."

    pullOnRefresh = 1

    script = ""
}

DavidGOrtega avatar Dec 20 '21 08:12 DavidGOrtega