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

Re: [HTCondor-users] getting/passing the SlotID

On 29/12/2013 13:35, Imre Pólik wrote:

"can a process get its own SlotID?
Look at the files pointed to by environment variables _CONDOR_MACHINE_AD and _CONDOR_JOB_AD
cmd = /bin/sh
transfer_executable = false
args = "-c 'head -1000 $_CONDOR_MACHINE_AD $_CONDOR_JOB_AD'"
output = test.out
error = test.err

"Name" or "SlotID" in the machine Ad may be what you want. There's also "RemoteHost" and "RemoteSlotID" in the job Ad."

Thanks. I was hoping to have something similar to $(Process), but alas $(SlotID) did not work. Nor did a few of your suggestions:

RemoteSlotID = 1


SlotID = 1

So it seems like the dynamic slot information is not in those ads. But:

Name = "slot1_1@orgrd001"

in the machine ad has what I need. On the other hand the job ad doesn't have this:

RemoteHost = "slot1@orgrd001"

I'll just search the machine ad then.