@@ -175,11 +175,11 @@ def loadContext(self):
175
175
def getGlideinExpectedCores (self ):
176
176
"""Return the expected number of cores for each glidein.
177
177
178
- This returns the value of the GLIDEIN_CPU attribute if > 0;
179
- otherwise, it returns the GLIDEIN_ESTIMATED_CPUS value when GLIDEIN_CPU <= 0
178
+ This returns the value of the GLIDEIN_CPUS attribute if > 0;
179
+ otherwise, it returns the GLIDEIN_ESTIMATED_CPUS value when GLIDEIN_CPUS <= 0
180
180
or a string (auto/node/slot) or 1 if not set.
181
181
Note that this number is used in provisioning and set in HTCondor. The actual
182
- number of cores used will depend on the RSL or HTCondor attributes and the Entry
182
+ number of cores used will depend on the RSL or HTCondor attributes, on the Entry,
183
183
and could also vary over time.
184
184
185
185
Returns:
@@ -235,7 +235,7 @@ def loadDowntimes(self):
235
235
self .jobAttributes .data ["GLIDEIN_Downtime_Comment" ] = self .downtimes .downtime_comment
236
236
237
237
def isClientBlacklisted (self , client_sec_name ):
238
- """Check if a client (Frontend) is blacklisted. I.e. the whitelist is enable and the client is not in the list.
238
+ """Check if a client (Frontend) is blacklisted. I.e. the whitelist is enabled and the client is not in the list.
239
239
240
240
Args:
241
241
client_sec_name (str): The security name of the client.
@@ -507,7 +507,7 @@ def writeClassadsToFile(self, downtime_flag, gf_filename, gfc_filename, append=T
507
507
Advertising is done in a separate function.
508
508
509
509
Args:
510
- downtime_flag (bool): Downtime flag .
510
+ downtime_flag (bool): Flag indicating whether the Factory is in downtime or not .
511
511
gf_filename (str): Filename to write the glidefactory classads.
512
512
gfc_filename (str): Filename to write the glidefactoryclient classads.
513
513
append (bool, optional): If True, append to existing files (i.e Multi ClassAds file);
@@ -657,7 +657,7 @@ def advertise(self, downtime_flag):
657
657
"""Advertise the glidefactory and glidefactoryclient classads.
658
658
659
659
Args:
660
- downtime_flag (bool): Downtime flag .
660
+ downtime_flag (bool): Flag indicating whether the Factory is in downtime or not .
661
661
"""
662
662
self .loadContext ()
663
663
@@ -736,7 +736,7 @@ def getLogStatsCurrentStatsData(self):
736
736
return self .getLogStatsData (self .gflFactoryConfig .log_stats .current_stats_data )
737
737
738
738
def getLogStatsData (self , stats_data ):
739
- """Retrieve normalized log statistics data, `stats_data(stats_data [frontend][user].data) `, for pickling.
739
+ """Retrieve normalized log statistics data, `` stats_data[frontend][user].data` `, for pickling.
740
740
741
741
Args:
742
742
stats_data (dict): Dictionary of statistics data keyed by Frontend and user.
@@ -769,7 +769,7 @@ def setLogStatsCurrentStatsData(self, new_data):
769
769
self .setLogStatsData (self .gflFactoryConfig .log_stats .current_stats_data , new_data )
770
770
771
771
def setLogStatsData (self , stats_data , new_data ):
772
- """Set log statistics data, `stats_data(stats_data [frontend][user].data) `, from pickled information.
772
+ """Set log statistics data, `` stats_data[frontend][user].data` `, from pickled information.
773
773
774
774
Args:
775
775
stats_data (dict): The existing statistics data.
@@ -812,19 +812,6 @@ def getState(self):
812
812
}
813
813
return state
814
814
815
- def setState_old (self , state ):
816
- """Load the post work state from pickled information.
817
-
818
- Args:
819
- state (dict): The pickled state after work has been performed.
820
- """
821
- self .gflFactoryConfig .client_stats = state .get ("client_stats" )
822
- self .gflFactoryConfig .qc_stats = state .get ("qc_stats" )
823
- self .gflFactoryConfig .rrd_stats = state .get ("rrd_stats" )
824
- self .gflFactoryConfig .client_internals = state .get ("client_internals" )
825
- self .glideinTotals = state .get ("glidein_totals" )
826
- self .gflFactoryConfig .log_stats = state ["log_stats" ]
827
-
828
815
def setState (self , state ):
829
816
"""Load the post work state from pickled information.
830
817
@@ -867,7 +854,7 @@ def setState(self, state):
867
854
# Debugging functions
868
855
#####################
869
856
def logLogStats (self , marker = "" ):
870
- """Log detailed log statistics for debugging.
857
+ """Log detailed statistics for debugging.
871
858
872
859
Args:
873
860
marker (str, optional): A marker string to prefix the debug logs. Defaults to an empty string.
@@ -893,7 +880,7 @@ def check_and_perform_work(factory_in_downtime, entry, work):
893
880
894
881
This function checks if work needs to be done for the entry and processes each work request
895
882
using the v3 protocol. It updates credentials, checks downtimes and whitelisting, and submits work.
896
- It is called by a child process per entry
883
+ It is called by a child process per entry.
897
884
898
885
Args:
899
886
factory_in_downtime (bool): True if the factory is in downtime.
@@ -1771,7 +1758,8 @@ def update_entries_stats(factory_in_downtime, entry_list):
1771
1758
TODO: #22163, skip update when in downtime?
1772
1759
1773
1760
Note:
1774
- qc_stats cannot be updated because the frontend certificate information are missing
1761
+ `qc_stats` (the client queue information) cannot be updated because the
1762
+ Frontend certificate information are missing.
1775
1763
1776
1764
Args:
1777
1765
factory_in_downtime (bool): True if the factory is in downtime.
0 commit comments