Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanMarx committed Jan 8, 2024
1 parent 23c85ad commit a40c28f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pycondor/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,18 @@ def __init__(self, id: int):

def refresh(self):
# requery procs for current running jobs.
# if new procs have been added,
# if new procs have been added,
# append them to proc list.
# this is to handle use cases where
# this is to handle use cases where
# all the jobs in the cluster may not have been
# submitted up front. For example, setting the
# submitted up front. For example, setting the
# `max_materialze` condor argument

current = self.query_procs()
for proc in current:
if proc.id not in self.proc_ids:
self.procs.append(proc)



def query_procs(self):
configs = query(self.id)
procs = []
Expand All @@ -79,7 +78,6 @@ def query_procs(self):
procs.append(proc)
return procs


def get_statuses(self) -> List[JobStatus]:
"""
Condor query the cluster id and parse the responses
Expand Down

0 comments on commit a40c28f

Please sign in to comment.