slurmray 3.4.0a0__tar.gz → 3.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of slurmray might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: slurmray
3
- Version: 3.4.0a0
3
+ Version: 3.5.0
4
4
  Summary: SlurmRay is a module for effortlessly distributing tasks on a Slurm cluster using the Ray library.
5
5
  Home-page: https://henri-jamet.vercel.app/
6
6
  License: Apache License
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "slurmray"
3
- version = "3.4.0a0"
3
+ version = "3.5.0"
4
4
  description = "SlurmRay is a module for effortlessly distributing tasks on a Slurm cluster using the Ray library. "
5
5
  authors = ["Henri Jamet <henri.jamet@unil.ch>"]
6
6
  license = "Apache License"
@@ -132,13 +132,17 @@ class RayLauncher:
132
132
  # Determine the path to the file
133
133
  local_path = file_path
134
134
  local_path_from_pwd = os.path.relpath(local_path, self.pwd_path)
135
- cluster_path = os.path.join("/users", self.server_username, "slurmray-server", ".slogs", "server", local_path_from_pwd)
135
+ cluster_path = os.path.join("/users", self.server_username, "slurmray-server", local_path_from_pwd)
136
136
 
137
137
  # Create the directory if not exists
138
138
 
139
139
  stdin, stdout, stderr = ssh_client.exec_command(f"mkdir -p '{os.path.dirname(cluster_path)}'")
140
- while not stdout.channel.exit_status_ready():
141
- time.sleep(0.25)
140
+ while True:
141
+ line = stdout.readline()
142
+ if not line:
143
+ break
144
+ print(line, end="")
145
+ time.sleep(1) # Wait for the directory to be created
142
146
 
143
147
  # Copy the file to the server
144
148
  sftp.put(file_path, cluster_path)
File without changes
File without changes