[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Access to renamed DAG node names



On Mon, 12 Jan 2015, Brian Candler wrote:

I note that DAGMAN renames nodes under several circumstances to ensure the node names are unique:

- single submission of multiple independent DAGs (name => "<num>.<jobname>")
- SPLICE (name => "<splice>+<jobname>")
- possibly SUBDAG EXTERNAL as well, I've not tested this

My question is, is it possible to have access at runtime to the chosen node name, so that for example you might have a shared submit file with

output = $(FOO).out
error =$(FOO).err

where $(FOO) expands to the unique renamed node name?

Yes, this is pretty easy to do:

In your DAG file:
  Job NodeA A.sub
  Vars NodeA nodename=$(JOB)

In A.sub:
  output = $(nodename).out
  error = $(nodename).err

$(nodename) will expand to the modified node name.

Kent Wenger
CHTC Team