Hi,
After usingÂNumSystemHolds, It is working as expected. Then, I added some more setting to filter out jobs from list. Basically, I want to release jobs which are held in state withÂHoldReason asÂInvalidInstanceID.NotFound orÂUnavailable orÂInvalidAMIID.NotFoundÂ. I am using following regular _expression_. It is not evaluating. Any thing wrong inÂbelowÂsettings ?Â
I tried below two. didn't work.Â
SYSTEM_PERIODIC_RELEASE=((NumSystemHolds < 5 && (time() - EnteredCurrentStatus) > 30) && (HoldReason.substr("InvalidAMIID.NotFound",0)!=""))
ÂSYSTEM_PERIODIC_RELEASE=((NumSystemHolds < 5 && (time() - EnteredCurrentStatus) > 30) && regexp("^.+InvalidAMIID.+$",HoldReason))
condor_q -hold 2878 output:
ÂID Â Â ÂOWNER Â Â Â Â Â HELD_SINCE HOLD_REASON
2878.0  cgw_dev     4/8 Â07:12 <?xml version="1.0" encoding="UTF-8"?>\n<Response><Errors><Error><Code>InvalidAMIID.NotFound</Code><Message>The image id 'ami-c4f2d0ac' does not exist</Message></Error></Errors><RequestID>d38b989a-40b6-4594-bf69-4824b201786d</RequestID></Response>