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

Re: [Condor-users] Dynamic Custom Resources in Condor



Ben,

Your script should output ClassAd attribute assignments in its standard output. For example, if you want to have your script set a ClassAd attribute named "Likes" to the value "bread" and an attribute "Quantity" to 3, you would make your script generate the following output:

Likes = "bread"
Quantity = 3

--Dan

Ben Rogers wrote:

Dan,

The cron functionality that you mention looks like a possibility, but I'm running in to a problem. How should I return my information from the script so that the classAd additions are generated. My script is being run, but I don't know how to pass the information on to condor. Any examples or a link to a tutorial would be appreciated. Thanks,

Ben Rogers

Dan Bradley wrote:

You want to use the startd "cron" functionality. Here's a post that describes it:

https://lists.cs.wisc.edu/archive/condor-users/2005-July/msg00092.shtml

--Dan Bradley

Ben Rogers wrote:

Hello,

We are in the process of replacing PBS Pro at our site with Condor. However I am running into an issue that I haven't yet been able to resolve. The problem is related to Class Ads and custom resources advertised by a certain machine.

In reading the manual I have seen how we can specify a new static resource/attribute for a machine to advertise; but we would like to have a script on the machine called at some given interval to refresh the state of that resource (in much the same way that condor constantly polls to see what the machine load is). Is it possible for me to call a script from within the condor configuration file?

We were using a system similar to this with PBS Pro where we had a script that checked to see how many Matlab licenses were left on our flexlm server, if there were enough licenses then the resource would be advertised as available and a job would run, otherwise it would have to wait until licenses were available.

Any thoughts or information regarding this problem would be greatly appreciated.

Ben Rogers
Systems Administrator
Dept. of Psychiatry
University of Iowa

_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users




_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users


_______________________________________________ Condor-users mailing list Condor-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/condor-users