skypilot-nightly 1.0.0.dev20240824__py3-none-any.whl → 1.0.0.dev20240825__py3-none-any.whl

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.
sky/__init__.py CHANGED
@@ -5,7 +5,7 @@ from typing import Optional
5
5
  import urllib.request
6
6
 
7
7
  # Replaced with the current commit when building the wheels.
8
- _SKYPILOT_COMMIT_SHA = 'f3defe3c2c14f28af5dc70b10ab6d4ef19d8709b'
8
+ _SKYPILOT_COMMIT_SHA = '4e7478bcf4ef837ae749a183fd74ce04dabe0d62'
9
9
 
10
10
 
11
11
  def _get_git_commit():
@@ -35,7 +35,7 @@ def _get_git_commit():
35
35
 
36
36
 
37
37
  __commit__ = _get_git_commit()
38
- __version__ = '1.0.0.dev20240824'
38
+ __version__ = '1.0.0.dev20240825'
39
39
  __root_dir__ = os.path.dirname(os.path.abspath(__file__))
40
40
 
41
41
 
@@ -317,7 +317,54 @@ available_node_types:
317
317
  # Do not change this command - it keeps the pod alive until it is
318
318
  # explicitly killed.
319
319
  command: ["/bin/bash", "-c", "--"]
320
- args: ['trap : TERM INT; sleep infinity & wait;']
320
+ args:
321
+ - |
322
+ # Tails file and checks every 5 sec for
323
+ # open file handlers with write access
324
+ # closes if none exist
325
+ monitor_file() {
326
+ tail -f $file &
327
+ TAIL_PID=$!
328
+ while kill -0 $TAIL_PID 2> /dev/null; do
329
+ # only two PIDs should be accessing the file
330
+ # the log appender and log tailer
331
+ if [ $(lsof -w $file | wc -l) -lt 3 ]; then
332
+ kill $TAIL_PID
333
+ break
334
+ fi
335
+ # Sleep for 5 seconds before checking again. Do not make this
336
+ # too short as it will consume CPU, and too long will cause
337
+ # the file to be closed too late keeping the pod alive.
338
+ sleep 5
339
+ done
340
+ }
341
+
342
+ log_tail() {
343
+ FILE_PATTERN="~/sky_logs/*/tasks/*.log"
344
+ while ! ls $(eval echo $FILE_PATTERN) 1> /dev/null 2>&1; do
345
+ sleep 1
346
+ done
347
+
348
+ # Keep track of already monitored files
349
+ already_monitored=""
350
+
351
+ # Infinite loop to continuously check for new files
352
+ while true; do
353
+ for file in $(eval echo $FILE_PATTERN); do
354
+ if echo $already_monitored | grep -q $file; then
355
+ # File is already being monitored
356
+ continue
357
+ fi
358
+
359
+ # Monitor the new file
360
+ monitor_file $file &
361
+ already_monitored="${already_monitored} ${file}"
362
+ done
363
+ sleep 0.1
364
+ done
365
+ }
366
+ trap : TERM INT; log_tail || sleep infinity & wait
367
+
321
368
  ports:
322
369
  - containerPort: 22 # Used for SSH
323
370
  - containerPort: {{ray_port}} # Redis port
@@ -365,7 +412,7 @@ setup_commands:
365
412
  # Line 'sudo grep ..': set the number of threads per process to unlimited to avoid ray job submit stucking issue when the number of running ray jobs increase.
366
413
  # Line 'mkdir -p ..': disable host key check
367
414
  # Line 'python3 -c ..': patch the buggy ray files and enable `-o allow_other` option for `goofys`
368
- - sudo DEBIAN_FRONTEND=noninteractive apt install gcc patch pciutils rsync fuse curl -y;
415
+ - sudo DEBIAN_FRONTEND=noninteractive apt install lsof gcc patch pciutils rsync fuse curl -y;
369
416
  mkdir -p ~/.ssh; touch ~/.ssh/config;
370
417
  {%- for initial_setup_command in initial_setup_commands %}
371
418
  {{ initial_setup_command }}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: skypilot-nightly
3
- Version: 1.0.0.dev20240824
3
+ Version: 1.0.0.dev20240825
4
4
  Summary: SkyPilot: An intercloud broker for the clouds
5
5
  Author: SkyPilot Team
6
6
  License: Apache 2.0
@@ -1,4 +1,4 @@
1
- sky/__init__.py,sha256=P9pq59ys4031jvg84mXVIEVfAXuAcx355jd3cJvc1g0,5588
1
+ sky/__init__.py,sha256=Xsw4aeSr5vw12FyGDpZcJ5ovuWrmo8r9aLK4ZRRpSDE,5588
2
2
  sky/authentication.py,sha256=PXKsabUKnvhoTNoNwZzo66qjCLAsuc5pQ8esVu0IYh8,20424
3
3
  sky/check.py,sha256=sqUCow5Gqqtp2ouk7tZ3whwDOK23wqyUJvcxMBsich8,9080
4
4
  sky/cli.py,sha256=XlgRr617B_yE2HV_nW01D_m5nWntW2GstutNrMp86UA,201504
@@ -226,7 +226,7 @@ sky/templates/jobs-controller.yaml.j2,sha256=QjlIcFBEay48xKT50UWqzgREzili-H7AuUr
226
226
  sky/templates/kubernetes-ingress.yml.j2,sha256=73iDklVDWBMbItg0IexCa6_ClXPJOxw7PWz3leku4nE,1340
227
227
  sky/templates/kubernetes-loadbalancer.yml.j2,sha256=IxrNYM366N01bbkJEbZ_UPYxUP8wyVEbRNFHRsBuLsw,626
228
228
  sky/templates/kubernetes-port-forward-proxy-command.sh,sha256=D5T3OUfTlTyiO4ZPwA8fBDyttfESpyWxlSTYrRJdHHA,2614
229
- sky/templates/kubernetes-ray.yml.j2,sha256=_qLDrSvIvH2GUIGu7MH6EvRBl1OjT0B8ekNrpPorx0A,16268
229
+ sky/templates/kubernetes-ray.yml.j2,sha256=YjNQNF1AcV_KEnEC-fDSGx5Ix6Ci0y9JOgJpYzwUcgg,18061
230
230
  sky/templates/kubernetes-ssh-jump.yml.j2,sha256=k5W5sOIMppU7dDkJMwPlqsUcb92y7L5_TVG3hkgMy8M,2747
231
231
  sky/templates/lambda-ray.yml.j2,sha256=SY3-itV1QJ6BoIDQ9Qm8XwfYgphyO7XfAzm7SsQtyc0,5738
232
232
  sky/templates/local-ray.yml.j2,sha256=FNHeyHF6nW9nU9QLIZceUWfvrFTTcO51KqhTnYCEFaA,1185
@@ -270,9 +270,9 @@ sky/utils/kubernetes/k8s_gpu_labeler_job.yaml,sha256=KPqp23B-zQ2SZK03jdHeF9fLTog
270
270
  sky/utils/kubernetes/k8s_gpu_labeler_setup.yaml,sha256=VLKT2KKimZu1GDg_4AIlIt488oMQvhRZWwsj9vBbPUg,3812
271
271
  sky/utils/kubernetes/rsync_helper.sh,sha256=1ad-m4s8QTPxaBQxNIL8AGDfX4un6T0dxZgk-R7OLyE,154
272
272
  sky/utils/kubernetes/ssh_jump_lifecycle_manager.py,sha256=RFLJ3k7MR5UN4SKHykQ0lV9SgXumoULpKYIAt1vh-HU,6560
273
- skypilot_nightly-1.0.0.dev20240824.dist-info/LICENSE,sha256=emRJAvE7ngL6x0RhQvlns5wJzGI3NEQ_WMjNmd9TZc4,12170
274
- skypilot_nightly-1.0.0.dev20240824.dist-info/METADATA,sha256=gXiWBPMwBGeLlYfTA9U4QVGpG7M1v6XWuTn1we5EBhY,18870
275
- skypilot_nightly-1.0.0.dev20240824.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
276
- skypilot_nightly-1.0.0.dev20240824.dist-info/entry_points.txt,sha256=StA6HYpuHj-Y61L2Ze-hK2IcLWgLZcML5gJu8cs6nU4,36
277
- skypilot_nightly-1.0.0.dev20240824.dist-info/top_level.txt,sha256=qA8QuiNNb6Y1OF-pCUtPEr6sLEwy2xJX06Bd_CrtrHY,4
278
- skypilot_nightly-1.0.0.dev20240824.dist-info/RECORD,,
273
+ skypilot_nightly-1.0.0.dev20240825.dist-info/LICENSE,sha256=emRJAvE7ngL6x0RhQvlns5wJzGI3NEQ_WMjNmd9TZc4,12170
274
+ skypilot_nightly-1.0.0.dev20240825.dist-info/METADATA,sha256=G_C-q4tUdHTzTw03Te6npNjMdtPkylXVaPpf3VljFFw,18870
275
+ skypilot_nightly-1.0.0.dev20240825.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
276
+ skypilot_nightly-1.0.0.dev20240825.dist-info/entry_points.txt,sha256=StA6HYpuHj-Y61L2Ze-hK2IcLWgLZcML5gJu8cs6nU4,36
277
+ skypilot_nightly-1.0.0.dev20240825.dist-info/top_level.txt,sha256=qA8QuiNNb6Y1OF-pCUtPEr6sLEwy2xJX06Bd_CrtrHY,4
278
+ skypilot_nightly-1.0.0.dev20240825.dist-info/RECORD,,