Replies: 3 comments
-
I like this idea. There's one thing about it though -- we'll need to specify the format that the arguments take. |
Beta Was this translation helpful? Give feedback.
-
Another thought -- we also need a way to specify if an argument is required. That can be accomplished in the following way:
Further, we could clean it up by moving the adapter name to the key.
We may be able to do something like this for headers also. |
Beta Was this translation helpful? Give feedback.
-
@dinatale2 -- I wanted to revisit this because I've been thinking about it. These recipes could be a good way to provide different launcher commands since they essentially provide mappings. What we will need is a way to annotate the format the arguments take. For example, |
Beta Was this translation helpful? Give feedback.
-
Within the various script adapters of maestrowf, there are command flags which are used to generate commands. Currently, in order to support various command line commands such as
srun
orlsf
, a new script adapter would need to be written.To simplify the process, why not introduce script adapter recipes? Using YAML, we can specify the command line arguments a new command expects. For instance, a slurm adapter would be:
Then in the study spec, a user can specify that they would like to use the
slurm
adapter and use the keys provided inarguments
to specify the value forntasks
,nodes
, ordepends
.This could even be expanded later to other parts of maestro (i.e. script header generation).
Beta Was this translation helpful? Give feedback.
All reactions