File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/decisionengine_modules/htcondor/publishers Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1515from decisionengine_modules .util .retry_function import retry_wrapper
1616
1717DEFAULT_UPDATE_AD_COMMAND = "UPDATE_AD_GENERIC"
18- DEFAULT_INVALIDATE_AD_COMMAND = "INVALIDATE_AD_GENERIC "
18+ DEFAULT_INVALIDATE_AD_COMMAND = "INVALIDATE_ADS_GENERIC "
1919
2020
2121@Publisher .supports_config (
@@ -46,7 +46,11 @@ def __del__(self):
4646 for collector_host in self .invalidate_ads_constraint :
4747 constraint = self .invalidate_ads_constraint [collector_host ]
4848 if constraint :
49- ads = [{"MyType" : "Query" , "TargetType" : self .classad_type , "Requirements" : constraint }]
49+ ad = classad .ClassAd ()
50+ ad .update (
51+ {"MyType" : "Query" , "TargetType" : self .classad_type , "Requirements" : classad .ExprTree (constraint )}
52+ )
53+ ads = [ad ]
5054 try :
5155 self .logger .info (
5256 f"Invalidating { self .classad_type } classads from collector_host { collector_host } with constraint { constraint } "
You can’t perform that action at this time.
0 commit comments