mirror of
https://github.com/vale981/ray
synced 2025-03-05 18:11:42 -05:00
![]() Packages are uploaded to the GCS for `runtime_env`. These packages are garbage collected when their refcount becomes zero. The problem is the reference doesn't get incremented until the job starts, which happens after the package is uploaded. It's possible for the package's refcount to go to zero in between the upload and when the job starts, causing the package to be deleted before it's needed by the job. It's likely the cause of https://github.com/ray-project/ray/issues/23423. We can't just increment the refcount at the time of upload, because if the script is killed before the job is started (e.g. via Ctrl-C) then the reference will never be decremented and the package will never be deleted. The solution in this PR is to increment the refcount at the time of upload, but automatically decrement after a configurable timeout (default 30s). This should be enough time for the job to start. When the job starts, it increments the refcount as usual and decrements it when the job finishes or is killed. Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com> |
||
---|---|---|
.. | ||
actor | ||
event | ||
job | ||
log | ||
node | ||
reporter | ||
runtime_env | ||
serve | ||
snapshot | ||
state | ||
test | ||
tests | ||
tune | ||
usage_stats | ||
__init__.py | ||
dashboard_sdk.py |