Skip to content

Commit

Permalink
Changed from summing to individual check
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyanrao committed Jun 23, 2021
1 parent bf7435f commit 91c96ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions funcx_endpoint/funcx_endpoint/strategies/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ def strategize(self, *args, **kwargs):

def _strategize(self, *args, **kwargs):
task_breakdown = self.interchange.get_outstanding_breakdown()
num_tasks = 0

info_log = False
for breakdown_item in task_breakdown:
num_tasks += breakdown_item[1]
if num_tasks > 0:
if breakdown_item[1] > 0:
info_log = True
break

if info_log:
logger.info(f"Task breakdown {task_breakdown}")
else:
logger.debug(f"Task breakdown {task_breakdown}")
Expand Down

0 comments on commit 91c96ce

Please sign in to comment.