Skip to content

Commit

Permalink
Fix unreliable coverage in synthetic app (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpauloski committed Sep 5, 2024
1 parent 984800b commit a137542
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion taps/apps/synthetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ def run_bag_of_tasks(
running_tasks.extend(new_tasks)
submitted_tasks += len(new_tasks)

if completed_tasks % max_running_tasks == 0:
# Depending on how many tasks wait() returns, this may
# not run. We could log *every* time wait() returns (i.e., every
# loop), but this can result in a lot of log statements.
if completed_tasks % max_running_tasks == 0: # pragma: no cover
rate = completed_tasks / (time.monotonic() - start)
logger.log(
APP_LOG_LEVEL,
Expand Down

0 comments on commit a137542

Please sign in to comment.