Skip to content

Commit

Permalink
use finalizer 1
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Apr 19, 2024
1 parent 682f82d commit 0991a2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ansys/fluent/core/launcher/container_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def __call__(self):
fluent_connection = FluentConnection(
port=port,
password=password,
file_transfer_service=self.file_transfer_service,
cleanup_on_exit=self.cleanup_on_exit,
slurm_job_id=self.argvals and self.argvals.get("slurm_job_id"),
inside_container=True,
Expand Down
6 changes: 5 additions & 1 deletion src/ansys/fluent/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,11 @@ def _create_from_server_info_file(
"""
ip, port, password = _parse_server_info_file(server_info_file_name)
fluent_connection = FluentConnection(
ip=ip, port=port, password=password, **connection_kwargs
ip=ip,
port=port,
password=password,
file_transfer_service=file_transfer_service,
**connection_kwargs,
)
session = cls(
fluent_connection=fluent_connection,
Expand Down

0 comments on commit 0991a2a

Please sign in to comment.