Skip to content

Commit

Permalink
GlobusComputeEngine should use HTEX.scale_in which has better scale_i…
Browse files Browse the repository at this point in the history
…n logic
  • Loading branch information
yadudoc committed Oct 30, 2023
1 parent 60ba518 commit bf03052
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def scale_out(self, blocks: int):

def scale_in(self, blocks: int):
logger.info(f"Scaling in {blocks} blocks")
to_kill = list(self.executor.blocks.values())[:blocks]
return self.provider.cancel(to_kill)
return self.executor.scale_in(blocks=blocks)

def get_status_report(self) -> EPStatusReport:
"""
Expand Down

0 comments on commit bf03052

Please sign in to comment.