Re: [HTCondor-devel] class ad attributes


Date: Sun, 17 Jan 2016 16:26:17 -0600
From: Erik Paulson <epaulson@xxxxxxxxxxx>
Subject: Re: [HTCondor-devel] class ad attributes
Do you want to do this at submit time, either in condor_submit or in the schedd, or while the job is running and insert data from the execution side?

-Erik


On Sun, Jan 17, 2016 at 2:35 AM, åå <715620615@xxxxxx> wrote:
Hi,

I want to add some other attributes in the job class ad, and it can realize by inserting +attributeName = value in the submit file, now I want to get the attribute value in the Condor source code, how can I realize it? I notice some codes likeÂ"job->LookupInteger(ATTR_MAX_HOSTS, hosts)", can it be got in the same way just like
"job->LookUpInteger(AttributeName, value)"?

And another question is I want to add some attributes dynamically in the source code, is the
Â"ad->Insert(attributeName, value)" way right? And then I can get the attribute value just like the above, is it right?

Thanks,

Kathy

_______________________________________________
HTCondor-devel mailing list
HTCondor-devel@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-devel

[← Prev in Thread] Current Thread [Next in Thread→]