Skip to content

Commit b49d0b5

Browse files
authored
Use /tmp for temporary files when download binary by ydbd_slice instead /home (#19401)
1 parent f9469fd commit b49d0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/tools/ydbd_slice/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def _copy_between_nodes(self, hub, hub_path, hosts, remote_path):
170170

171171
def _download_sky(self, url, remote_path):
172172
self._logger.info(f"download from '{url}' to '{remote_path}'")
173-
tmp_path = url.split(":")[-1]
173+
tmp_path = f'/tmp/sky_download_{url.split(":")[-1]}'
174174
script = (
175175
f'sky get -wu -d {tmp_path} {url} && '
176176
f'for FILE in `find {tmp_path} -name *.tgz -or -name *.tar`; do tar -C {tmp_path} -xf $FILE && rm $FILE; done && '
@@ -182,7 +182,7 @@ def _download_sky(self, url, remote_path):
182182
def _download_script(self, script, remote_path):
183183
user_script = script[len('script:'):]
184184
self._logger.info(f"download by script '{user_script}' to '{remote_path}'")
185-
tmp_path = f'tmp_{random.randint(0, 100500)}'
185+
tmp_path = f'/tmp/script_download_{random.randint(0, 100500)}'
186186
full_script = (
187187
f'mkdir -p {tmp_path} && cd {tmp_path} && '
188188
f'( {user_script} ) && cd - && '

0 commit comments

Comments
 (0)