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

Re: [Condor-users] Machine Classads in Jobs info (spool/history file)




What version of Condor are you using? $$([...]) works for me in my tests of 7.0. The only reason to have the square brackets in there is to allow arbitrary expressions. So if you just want to insert the value of an attribute, there is no need for the square brackets.

--Dan

Daniel Tardón wrote:

We finally found the reason of why it wasn´t working. For some reason,
condor wasn´t accepting the [] in the sentence :
MachineProcessor_Speed = "$$([Processor_Speed])"  and we´ve had to put it
into the condor_config.local in the submit machine.
The end result is: MachineProcessor_Speed = "$$(Processor_Speed)"
Thanks for everything.


Hi,

If i insert in my submit file this:

+MachineProcessor_Speed = "$$([Processor_Speed])"

then the job is held with this message:

Cannot expand $$([Processor_Speed])

On the other hand, if i insert this in the condor_config file:

MachineProcessor_Speed = "$$([Processor_Speed])"
SUBMIT_EXPRS = $(SUBMIT_EXPRS) MachineProcessor_Speed

I don't receive anything in the history file when jobs finish.

I tried to insert those two lines in the condor_config.local of the
submitter machine and then i get the same error than in the submit file
case.

Any ideas?

Thanks


To insert an attribute named X from the machine ClassAd into the job
ClassAd, you can put the following in the job submit file:

+MachineX = "$$([X])"

In the job history ClassAd, this will be stored in the job Ad as
MATCH_EXP_MachineX = "whatever".

Or if you want this to happen for all jobs, without having to insert
that into the submit file, put this in your configuration:

MachineX = "$$([X])"
SUBMIT_EXPRS = $(SUBMIT_EXPRS) MachineX

--Dan

Daniel Tardón wrote:
Hi

i'd like to know how can i get in the jobs info, that is written in the
spool/history file, the classads that i have added to each machine
configuration.

For example:

I hava myClassAdd = myValue in a condor_config.local in a machine. Now
i
want to see that classad and its value in the history file for each job
that this machine runs.

Sorry my english.

Thanks


_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with
a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/

--
Daniel Tardón (daniel@xxxxxxxxxx)
Grupo Grid de Cediant

_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/