-
Notifications
You must be signed in to change notification settings - Fork 28
task
destroy, need of being able to specify output folder
#307
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
task
destroy, need of being able to autogenerate subfolders to sync datatask
destroy, need of being able to specify output folder
This probably belongs to an epic about parallel training. With the current behavior, users can solve that by writing the result of each machine to a different path: resource "iterative_task" "task" {
name = "example"
cloud = "aws"
parallelism = 4
script = <<-END
#!/bin/bash
date >> result-$(uuidgen)
END
} |
Machines have no means of knowing if they're resuming an interrupted tast or starting a new one. Without implementing some sort of leader election and task splitting mechanism, there won't be an 1:1 mapping between |
Im not speaking about training in parallel, just launch the same task with different parameters within the same terraform file. |
Im updating with a terraform example |
Thanks for the clarification! 🙏🏼 Still, it looks like my first reply is relevant: you can avoid overwriting artifacts by naming them differently on each task. Nevertheless, there is a deeper problem with the current approach: running |
We should probably consider having separate directories for input and output: SchemaAttributesresource "iterative_task" "task" {
name = "example"
cloud = "aws"
input_directory = "."
output_directory = "./output"
script = <<-END
#!/bin/bash
date >> result
END
} Blockresource "iterative_task" "task" {
name = "example"
cloud = "aws"
script = <<-END
#!/bin/bash
date >> result
END
directories {
input = "."
output = "./output"
}
} BehaviorDroste effect prevention
Input exclusion
Existence
Example
|
directories {
input = "."
output = "./output"
} Love this idea. |
Regarding user experience, we may want to set terraform-provider-iterative/iterative/resource_task.go Lines 105 to 110 in fa9c7f8
|
I have picked this @0x2b3bfa0 |
If I launch a cluster of tasks in the same workdir but different env vars or script I would like to be able to recover all the execution in different folders. The problem right now is that
directory
is used in the initial sync and in the finaloutput
.We need to be able to specify
directoryOutput
aligned withdirectory
by default to avoid this outputs to be overwrittenIf I destroy the example above I have just only a mess in current folder we might want
note the
output
propertyThe text was updated successfully, but these errors were encountered: