I’m putting this out here for discussion. Consider a Java tool whose memory usage needs to be specified. Hardcoding this on the command line seems not to be a good practice for me, so perhaps something like this is good:
baseCommand: [java] arguments: - "-Xmx$(Math.ceil(runtime.ram / 1000))G"
The runtime RAM can be altered using a
ResourceRequirement. This allows the RAM to be specified in a way that could inform e.g. a scheduler that is scheduling the job and the final computed value passed to the command line at runtime. It does, of course, require that the tool uses a