Replies: 1 comment
-
Copied over to OpenJobDescription/openjd-specifications#48 This sounds like it would end up being a feature of the job specification. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need my task space to be a subset of strings in a larger string array for my project. This is not currently supported, but I've found a solution that I am pretty happy with, and more official support to streamline it would be fantastic. Here is what I've done.
I've created a folder dedicated to hosting many text files. Each text file contains a slice of the list of strings I want processed. For example...
In my template.yaml, I've defined a top-level param to specify the
task_count
, which will determine how many of these files I will process.My parameter space defines a simple range...
Then, in my script, I use
Task.Param.TaskFileIndex
to pull the appropriate file from that directory for the task, read its contents, and continue processing as normal.I currently use Deadline Cloud with the Python submitter, so this workflow allows me to generate those task files dynamically in my submission script. This is extra awesome because it means I can enlist the help of more-itertools to create my ranges incredibly easily. As for local OpenJD workflow, it is also easy to generate and keep some of these files in my working area.
My hope is that this approach will become streamlined through official support, and we might be able to specify something such as...
It would give you a path for each file found within the specified directory, or even...
It could go so far as to give you the values found within said file and implicitly determine the file via a predictable folder structure matching up with the step name and
taskParameter
name. For example...Interested in hearing others' thoughts. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions