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

[HTCondor-users] HTCondor ClassAd attributes list in python bindings



Hi everyone!

After loosing 2 days trying to submit a job in python bindings using the same attributes names that  appear in a condor submit file, I realized that attributes names submitting using python are different.

For example:
Universe       = vanilla
Executable     = my_script.sh  
arguments = $(Process)

input   = /dev/null
output  = hello_$(Process).out                
error   = hello_$(Process).error  

would be like this:
ad = classad.ClassAd();
ad['Universe'] = 'vanilla';
ad['Cmd'] = 'my_script.sh';
ad['Arguments'] = classad.ExprTree(ProcID);
ad['In'] = '/dev/null'
ad['Out'] = classad.ExprTree('strcat("my_script.", ClusterID, ".", ProcID, ".out")'); 

Where can i find an extensive list of the attributes that can be used in a ClassAd using Python bindings?

Thank you,
Alessandro

--

"I Re, i Signori, i ricchi si sono divisi fra loro la terra inventando due tremende parole, il mio e il tuo, siepe di ferro tra te e i tuoi bisogni. Nessuno ha diritto al superfluo fino a che vi sarà un sol uomo che manchi del necessario"