fix: ensure GCS storage initialization before pagination
Adds ensureInitialized() call to getNodesWithPagination() to prevent null bucket access during index rebuild on container restart. Fixes initialization hang that prevented Cloud Run/GKE deployments.
This commit is contained in:
parent
bde27e68ab
commit
2565685ba7
1 changed files with 2 additions and 0 deletions
|
|
@ -1019,6 +1019,8 @@ export class GcsStorage extends BaseStorage {
|
|||
hasMore: boolean
|
||||
nextCursor?: string
|
||||
}> {
|
||||
await this.ensureInitialized() // CRITICAL: Must initialize before using this.bucket
|
||||
|
||||
const limit = options.limit || 100
|
||||
const useCache = options.useCache !== false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue