-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task directory_out #340
Task directory_out #340
Conversation
…der-iterative into task/directory_out
@iterative/cml what do you think about: 1In my opinion I prefer to have them this way opposed to a nested structure as
|
2and probably prefer |
Voting in favor of nested blocks: resource "iterative_task" "example" {
...
storage {
input_directory = "."
output_directory = "output"
...
}
} |
No strong preference either. 🤷🏼♂️ |
Just downvote 1 |
I think I would be in favor of a |
I would not say |
👆 updated PR desc Im doing the integration tests in another PR. 1 Nothing setresource "iterative_task" "tpi-examples-basic2" {
provider = iterative2
name = "tpi-examples-basic2"
cloud = "az"
region = "us-east"
machine = "Standard_D2S_v3"
#spot = 0
script = <<-END
#!/bin/bash
echo 'hello tpi' > data.txt
printenv >> data.txt
END
} 2 directory set then change directory_out just refreshesresource "iterative_task" "tpi-examples-basic2" {
provider = iterative2
name = "tpi-examples-basic2"
cloud = "az"
region = "us-east"
machine = "Standard_D2S_v3"
#spot = 0
storage {
directory = "."
}
script = <<-END
#!/bin/bash
echo 'hello tpi' > data.txt
printenv >> data.txt
END
} and then updating the storage resource "iterative_task" "tpi-examples-basic2" {
provider = iterative2
name = "tpi-examples-basic2"
cloud = "az"
region = "us-east"
machine = "Standard_D2S_v3"
#spot = 0
storage {
directory = "."
directory_out = "./task2"
}
script = <<-END
#!/bin/bash
echo 'hello tpi' > data.txt
printenv >> data.txt
END
} 3 directory set then change directory destroys and createresource "iterative_task" "tpi-examples-basic2" {
provider = iterative2
name = "tpi-examples-basic2"
cloud = "az"
region = "us-east"
machine = "Standard_D2S_v3"
script = <<-END
#!/bin/bash
echo 'hello tpi' > data.txt
printenv >> data.txt
END
} and then updating the storage resource "iterative_task" "tpi-examples-basic2" {
provider = iterative2
name = "tpi-examples-basic2"
cloud = "az"
region = "us-east"
machine = "Standard_D2S_v3"
storage {
directory = "."
directory_out = "./task2"
}
script = <<-END
#!/bin/bash
echo 'hello tpi' > data.txt
printenv >> data.txt
END
} |
Co-authored-by: Restyled.io <commits@restyled.io>
Doesn't contemplate droste effect prevention nor input exclusion as per #307 (comment), but... rhinoceroses definitely can be farm animals. 😄 |
Nitpick: any preference for |
|
@0x2b3bfa0 please review 🙏 |
This comment has been minimized.
This comment has been minimized.
@0x2b3bfa0 any chance? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having tested the previous version (just directory
) and finding it very painful and counter-intuitive mostly due to the name, I'd strongly suggest workdir
:
workdir {
in(put): ...
out(put): ...
}
Because the remote instance really uses these as (current) working directories.
@iterative/cml @casperdcl I feel the same about |
@iterative/cml i'm changing just only the interface for the internal test. I we like it II will adapt then the code internally. |
@iterative/cml please review and accept if ok 🙏 |
@casperdcl any luck here? 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pushed a couple of documentation updates, please review before merge 🙏
Looks great @casperdcl |
Awesome. Do we have a follow-up issue for some of the outstanding items like #340 (comment)? |
We don't, and we probably should. Or, at least, move it to Notion. |
All solved! We are not going to solve 1,2,3 as ideally we thought because adds complexity and the solution is not right anyway. Please read the comment why 1,2,3 are discarded in favour of just error if the output folder is not empty |
task
destroy, need of being able to specify output folder #307task
recovering two tasks specifying a different folder ends in error #300task
destroy multiple tasks may end up in transfer errors that makes impossible the task destruction #306Created the nested structure using a TypeSet because TypeMap can not set predefined keys so we were not able in that case to setup the
ForceNew
strategy.Example