How soon are you querying the ad after?
If it's the same mechanism as memory and other attributes then it could be up to 15 minutes before it appears in the schedd copy of the job ad.
I wrote a simple prepare-job-hook which basically just
echo MyVariable = \”foobar\”
In the Starter log I can see MyVariable has been injected into the ClassAd.
However, when I query the running job via condor_q –long, MyVariable is not there.
Is this a bug?
PRIVACY AND CONFIDENTIALITY NOTICE
The information contained in this message is intended for the named recipients only. It may contain confidential information and if you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received
this message in error please destroy it and reply to the sender immediately or contact us at the above telephone number.
While we take every precaution against presence of computer viruses on our system, we accept no responsibility for loss or damage arising from the transmission of viruses to e-mail recipients.