Add _default_workspace to shared storage finalization
- Add _default_workspace to global vars
- Set _default_workspace to None on cleanup
- Ensure complete resource cleanup
- Fix missing workspace finalization
(cherry picked from commit 6d6716e9f8)
This commit is contained in:
parent
c52c1aea69
commit
708f80f43d
1 changed files with 3 additions and 1 deletions
|
|
@ -1456,7 +1456,8 @@ def finalize_share_data():
|
||||||
_init_flags, \
|
_init_flags, \
|
||||||
_initialized, \
|
_initialized, \
|
||||||
_update_flags, \
|
_update_flags, \
|
||||||
_async_locks
|
_async_locks, \
|
||||||
|
_default_workspace
|
||||||
|
|
||||||
# Check if already initialized
|
# Check if already initialized
|
||||||
if not _initialized:
|
if not _initialized:
|
||||||
|
|
@ -1522,5 +1523,6 @@ def finalize_share_data():
|
||||||
_data_init_lock = None
|
_data_init_lock = None
|
||||||
_update_flags = None
|
_update_flags = None
|
||||||
_async_locks = None
|
_async_locks = None
|
||||||
|
_default_workspace = None
|
||||||
|
|
||||||
direct_log(f"Process {os.getpid()} storage data finalization complete")
|
direct_log(f"Process {os.getpid()} storage data finalization complete")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue