Skip to content

Commit 5d88ad1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 828348b commit 5d88ad1

File tree

8 files changed

+5
-15
lines changed

8 files changed

+5
-15
lines changed

src/decisionengine_modules/AWS/transforms/AwsBurnRate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def __init__(self, config):
1717
super().__init__(config)
1818

1919
def transform(self, data_block):
20-
2120
spot_prices = self.provisioner_resource_spot_prices(data_block).fillna(0)
2221
occupancy = self.AWS_Occupancy(data_block).fillna(0)
2322

src/decisionengine_modules/GCE/transforms/GceFigureOfMerit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def __init__(self, config):
2222
super().__init__(config)
2323

2424
def transform(self, data_block):
25-
2625
self.logger.debug("in GceFigureOfMerit transform")
2726
performance = self.GCE_Instance_Performance(data_block)
2827
performance["PricePerformance"] = np.where(

src/decisionengine_modules/glideinwms/classads.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class GlideClientClassad(classadSupport.Classad):
8-
98
# Class variable: Counter for classad counter.
109
# key = (name)
1110
classad_counter = {}

src/decisionengine_modules/glideinwms/configure_gwms_frontend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ def get_arg_parser():
9090
############################################################
9191

9292
if __name__ == "__main__":
93-
9493
noroot_msg = "NOTE: Executing this command as user root is not allowed. Use the decisionengine user instead."
9594

9695
if os.geteuid() == 0:

src/decisionengine_modules/glideinwms/glide_frontend_element.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ def create_glideclient_classads(
442442
entry_name="condor",
443443
glidein_site="Unknown",
444444
):
445-
446445
if glidein_params is None:
447446
glidein_params = {}
448447
if glidein_monitors is None:
@@ -670,7 +669,7 @@ def create_glideclientglobal_classads(self, glidefactory_classad, key_builder):
670669
}
671670
for cred in credentials:
672671
if cred.advertize:
673-
for (fname, data) in cred.loaded_data:
672+
for fname, data in cred.loaded_data:
674673
classad_attrs_to_encrypt[cred.file_id(fname)] = data
675674
if hasattr(cred, "security_class"):
676675
# Convert security_class to string for factory
@@ -946,7 +945,7 @@ def count_match(self, job_types, job_type, entries):
946945
# Get group of jobs based on request cpus
947946
job_groups = jobs.groupby("RequestCpus")
948947

949-
for (req_cpus, group) in job_groups:
948+
for req_cpus, group in job_groups:
950949
# Group jobs by matching criteria: RequestCpus for now
951950
# We care about job counts for each group
952951
job_count = len(group)
@@ -1070,7 +1069,6 @@ def identify_limits_triggered(
10701069
global_total_idle_glideins,
10711070
limits_triggered,
10721071
):
1073-
10741072
# Identify the limits triggered for advertising in glideresource
10751073
if count_status["Total"] >= self.entry_max_glideins: # max_running
10761074
limits_triggered[
@@ -1128,7 +1126,6 @@ def compute_glidein_min_idle(
11281126
or (global_total_glideins >= self.global_total_max_slots)
11291127
or (global_total_idle_glideins >= self.global_total_max_slots_idle)
11301128
):
1131-
11321129
# Do not request more glideins under following conditions:
11331130
# 1. Have all the running jobs I wanted
11341131
# 2. Have enough idle vms/slots
@@ -1809,7 +1806,7 @@ def count_match_fom_bff(self, job_types, job_type, entries):
18091806

18101807
dbg_info.append(f"{len(job_groups)} job groups")
18111808

1812-
for (req_cpus, job_group) in job_groups:
1809+
for req_cpus, job_group in job_groups:
18131810
# Group jobs by matching criteria: RequestCpus for now
18141811
# We only care about job counts for each group
18151812
job_count = len(job_group)
@@ -1913,7 +1910,7 @@ def count_match_fom_dff(self, job_types, job_type, entries):
19131910
# Get group of jobs based on request cpus
19141911
job_groups = jobs.groupby("RequestCpus")
19151912

1916-
for (req_cpus, job_group) in job_groups:
1913+
for req_cpus, job_group in job_groups:
19171914
# Group jobs by matching criteria: RequestCpus for now
19181915
# We care about job counts for each group
19191916
job_count = len(job_group)
@@ -1950,7 +1947,7 @@ def count_match_fom_dff(self, job_types, job_type, entries):
19501947
# Start with entries with lowest FOM and fill them first
19511948
job_count_matched = 0
19521949

1953-
for (_fom, fom_group_entries) in fom_matches:
1950+
for _fom, fom_group_entries in fom_matches:
19541951
job_count_unmatched = job_count - job_count_matched
19551952
if job_count_unmatched > 0:
19561953
# Distribute the jobs equally among this entry group

src/decisionengine_modules/glideinwms/security.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ def __str__(self):
227227

228228

229229
class CredentialCache:
230-
231230
# Cache the credential ids so we do not create again unless required
232231
# Specially expensive to create id for proxy which uses DN in hash
233232
def __init__(self):

src/decisionengine_modules/glideinwms/transforms/gwms_to_aws_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def __init__(self, config):
2020
super().__init__(config)
2121

2222
def transform(self, datablock):
23-
2423
# Get the dataframe containing AWS entries
2524
self.logger.debug("in AWSFactoryEntryData transform")
2625
aws_entries = self.Factory_Entries(datablock).xs("AWS")

src/decisionengine_modules/glideinwms/transforms/job_clustering.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def __init__(self, config):
4949
)
5050

5151
def transform(self, datablock):
52-
5352
self.logger.info("*** Starting job clustering ***")
5453
# TODO not sure if metadata is propagated or if this is the right attrs to id a datablock
5554

0 commit comments

Comments
 (0)