Re: [HTCondor-devel] class ad attributes


Date: Mon, 18 Jan 2016 10:17:54 +0800
From: åå <715620615@xxxxxx>
Subject: Re: [HTCondor-devel] class ad attributes
Appreciate the time you spent looking. I want to do this both at submit time and in the schedd.

Thanks,

Kathy


------------------ Original ------------------
From:  "Erik Paulson";<epaulson@xxxxxxxxxxx>;
Date:  Mon, Jan 18, 2016 06:26 AM
To:  "åå"<715620615@xxxxxx>;
Cc:  "htcondor-devel"<htcondor-devel@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→]