Skip to content

Commit

Permalink
Remove channel closing that is now a no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
benclifford committed Oct 23, 2024
1 parent 23e47ef commit e2f0d19
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
6 changes: 0 additions & 6 deletions parsl/channels/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ def pull_file(self, remote_source: str, local_dir: str) -> str:
'''
pass

@abstractmethod
def close(self) -> None:
''' Closes the channel.
'''
pass

@abstractmethod
def makedirs(self, path: str, mode: int = 0o511, exist_ok: bool = False) -> None:
"""Create a directory.
Expand Down
5 changes: 0 additions & 5 deletions parsl/channels/local/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@ def push_file(self, source, dest_dir):
def pull_file(self, remote_source, local_dir):
return self.push_file(remote_source, local_dir)

def close(self) -> None:
''' There's nothing to close here, and so this doesn't do anything
'''
pass

def isdir(self, path):
"""Return true if the path refers to an existing directory.
Expand Down
11 changes: 0 additions & 11 deletions parsl/dataflow/dflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,17 +1268,6 @@ def cleanup(self) -> None:
executor.shutdown()
logger.info(f"Shut down executor {executor.label}")

if hasattr(executor, 'provider'):
if hasattr(executor.provider, 'script_dir'):
logger.info(f"Closing channel(s) for {executor.label}")

assert hasattr(executor.provider, 'channel'), "If provider has no .channels, it must have .channel"
logger.info(f"Closing channel {executor.provider.channel}")
executor.provider.channel.close()
logger.info(f"Closed channel {executor.provider.channel}")

logger.info(f"Closed executor channel(s) for {executor.label}")

logger.info("Terminated executors")
self.time_completed = datetime.datetime.now()

Expand Down

0 comments on commit e2f0d19

Please sign in to comment.