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

Re: [HTCondor-users] Preserve history in classad expression



Hi Vikrant,
something like that would work, but I think it is not available in the Machine classad itself.
I need to have that in the startd to control the START expression, wether it is available for jobs or not.
Marco


> On Sep 25, 2019, at 6:33 AM, Vikrant Aggarwal <ervikrant06@xxxxxxxxx> wrote:
> 
> If I am getting it right are you looking for option like  this which is available in job classAD
> 
> MachineAttr<X><N>:
> Machine attribute of name <X> that is placed into this job ClassAd, as specified by the configuration variable SYSTEM_JOB_MACHINE_ATTRS. With the potential for multiple run attempts, <N> represents an integer value providing historical values of this machine attribute for multiple runs. The most recent run will have a value of <N> equal to 0. The next most recent run will have a value of <N> equal to 1.
> 
> Thanks & Regards,
> Vikrant Aggarwal
> 
> 
> On Tue, Sep 24, 2019 at 5:46 AM Jose Caballero <jcaballero.hep@xxxxxxxxx> wrote:
> Hi Marco,
> 
> AFK, so from the top of my head, would it help to check for UNDEFINED in the logic ?
> 
> Good luck,
> Jose
> 
> 
> 
> On Sep 23, 2019, at 18:31, Marco Mambelli <marcom@xxxxxxxx> wrote:
> 
> > Greetings,
> > I was wondering if there is a way to use the last value of an attribute evaluation to calculate the next one in a classad.
> > Let's say I'd like to have a trigger that trips a switch that remains set for the rest of the life of the machine (until it's killed or there is a restart).
> > Something like a circuit breaker.
> > Is that possible? How could I do that?
> > 
> > Something like this in the configuration is not working:
> > MYSWITCH = false
> > MYSWITCH = $(MYSWITCH) || MYTRIGGER
> > 
> > In each evaluation the switch is reset to false, then the result will be true only while the trigger is true, not preserved later.
> > 
> > 
> > I tried also to have the value in the log file using the debug macro:
> > MYSWITCH =debug( $(MYSWITCH) || MYTRIGGER)
> > but I did not see anything in the log files. The switch value is used in the start expression, so it should be evaluated periodically.
> > 
> > 
> > Thanks,
> > Marco
> > 
> > 
> > 
> > _______________________________________________
> > HTCondor-users mailing list
> > To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> > subject: Unsubscribe
> > You can also unsubscribe by visiting
> > https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
> > 
> > The archives can be found at:
> > https://lists.cs.wisc.edu/archive/htcondor-users/
> 
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
> 
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_mailman_listinfo_htcondor-2Dusers&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=EF06-Wh4L9CNLgD8bnIjNQ&m=UHhMwftpxuBJ8svHC177TXVPydMjZ_jfviPbcAbeVdg&s=3Y-Mw-BJ2P4cCiUWjEhn_q9Wst2vrZstDdCTKIqASKE&e= 
> 
> The archives can be found at:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_archive_htcondor-2Dusers_&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=EF06-Wh4L9CNLgD8bnIjNQ&m=UHhMwftpxuBJ8svHC177TXVPydMjZ_jfviPbcAbeVdg&s=zW8Nygfjok6zw36UB59-91q6bJg71RF64evlMJ6ewJM&e=