Skip to content

Commit

Permalink
Mark scale_out method as internal to BlockProviderExecutor (#3529)
Browse files Browse the repository at this point in the history
See PEP-8 https://peps.python.org/pep-0008/#descriptive-naming-styles

This should not change any behaviour.
  • Loading branch information
benclifford authored Jul 19, 2024
1 parent 13ae8e5 commit 2b1594c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsl/executors/status_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _filter_scale_in_ids(self, to_kill, killed):
# Filters first iterable by bool values in second
return list(compress(to_kill, killed))

def scale_out(self, blocks: int = 1) -> List[str]:
def _scale_out(self, blocks: int = 1) -> List[str]:
"""Scales out the number of blocks by "blocks"
"""
if not self.provider:
Expand Down Expand Up @@ -312,7 +312,7 @@ def scale_in_facade(self, n: int, max_idletime: Optional[float] = None) -> List[
return block_ids

def scale_out_facade(self, n: int) -> List[str]:
block_ids = self.scale_out(n)
block_ids = self._scale_out(n)
if block_ids is not None:
new_status = {}
for block_id in block_ids:
Expand Down

0 comments on commit 2b1594c

Please sign in to comment.