v2.12.0
RemoteScope に明示的な open() / close() / clear() メソッドを追加し、with 文に頼らないリモート実行スタイルと、スコープを閉じずに行う手動 GC を可能にしたリリースです。
Highlights
RemoteScopeにopen()/close()/clear()を追加。Jupyter でセルを跨いで scope を保持したり、長時間ループ中にclear()でワーカー側メモリを定期解放したりできるように (820bb56)- スコープはスタックとしてネスト可能で、
open()/open()でもopen()+with remote_scope()でも使える(新しい ref は常に最も内側の scope に登録される)(820bb56)
New Features
- Add
RemoteScope.open()/close()/clear()for explicit scope control, with backward-compatiblewith remote_scope():semantics (820bb56)
Documentation
- Document the three
RemoteScopeusage patterns (with/ explicitopen/close/clear), nesting semantics, and the footgun of reusing the same scope instance with bothopen()andwithindistributed.{ja.md,md}(820bb56)
Full Changelog: v2.11.0...v2.12.0