Skip to content

Commit ed322f3

Browse files
0x2b3bfa0casperdcl
andauthored
Separate input and output directory settings (#395)
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
1 parent 4fc3ee9 commit ed322f3

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

docs/guides/getting-started.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ resource "iterative_task" "task" {
2727
2828
workdir {
2929
input = "${path.root}/shared"
30+
output = "${path.root}/shared"
3031
}
3132
script = <<-END
3233
#!/bin/bash

docs/resources/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ resource "iterative_task" "task" {
4242
- `image` - (Optional) [Machine image](#machine-images) to run the task with.
4343
- `parallelism` - (Optional) Number of machines to be launched in parallel.
4444
- `workdir.input` - (Optional) Local working directory to upload.
45-
- `workdir.output` - (Optional) Local directory to download results to (default: `workdir.input`).
45+
- `workdir.output` - (Optional) Local directory to download results to (default: no download).
4646
- `environment` - (Optional) Map of environment variable names and values for the task script. Empty string values are replaced with local environment values. Empty values may also be combined with a [glob](<https://en.wikipedia.org/wiki/Glob_(programming)>) name to import all matching variables.
4747
- `timeout` - (Optional) Maximum number of seconds to run before termination.
4848

iterative/resource_task.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,6 @@ func resourceTaskBuild(ctx context.Context, d *schema.ResourceData, m interface{
292292
return nil, errors.New("output directory " + directory_out + " is not empty!")
293293
}
294294
}
295-
if directory_out == "" {
296-
directory_out = directory
297-
}
298295

299296
t := common.Task{
300297
Size: common.Size{

0 commit comments

Comments
 (0)