<#3308 Add skip_instance_cache for gs file system>...
# flyte-github
c
#3308 Add skip_instance_cache for gs file system Pull request opened by pingsutw ## Tracking issue NA ## Why are the changes needed? Avoid GCSFileSystem reusing an HTTP session from a different event loop.
Copy code
5-08-08T00:08:10Z │ /opt/conda/lib/python3.10/weakref.py:667 in _exitfunc                        │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ ❱ 667 │   │   │   │   │   │   f()                                            │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ /opt/conda/lib/python3.10/weakref.py:591 in __call__                         │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ ❱ 591 │   │   │   return info.func(*info.args, **(info.kwargs or {}))        │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ /opt/conda/lib/python3.10/site-packages/gcsfs/core.py:380 in close_session   │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ ❱  380 │   │   │   │   asyn.sync(asyn.loop[0], session.close, timeout=0.1)   │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ /opt/conda/lib/python3.10/site-packages/fsspec/asyn.py:103 in sync           │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ ❱  103 │   │   raise return_result                                           │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ /opt/conda/lib/python3.10/site-packages/fsspec/asyn.py:56 in _runner         │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ ❱   56 │   │   result[0] = await coro                                        │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ /opt/conda/lib/python3.10/asyncio/tasks.py:445 in wait_for                   │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ ❱ 445 │   │   │   return fut.result()                                        │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ /opt/conda/lib/python3.10/site-packages/aiohttp/client.py:1327 in close      │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ ❱ 1327 │   │   │   │   await self._connector.close()                         │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ /opt/conda/lib/python3.10/site-packages/aiohttp/connector.py:1044 in close   │
2025-08-08T00:08:10Z │                                                                              │
2025-08-08T00:08:10Z │ ❱ 1044 │   │   await super().close(abort_ssl=abort_ssl or self._ssl_shutdown
## What changes were proposed in this pull request? ## How was this patch tested? ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link https://bito.ai#summarystart| ### Summary by Bito This pull request enhances the GCS file system by introducing a parameter to skip the instance cache, improving reliability and performance by preventing HTTP session reuse across different event loops. flyteorg/flytekit