MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / pullAllSessions

Method pullAllSessions

packages/sync/src/pull-engine.ts:485–498  ·  view source on GitHub ↗
(ds: DataSource)

Source from the content-addressed store, hash-verified

483 }
484
485 async pullAllSessions(ds: DataSource): Promise<void> {
486 if (this.pullingSourceIds.has(ds.id)) {
487 this.logger.info(`[Pull] Skipping pullAllSessions for "${ds.baseUrl}": pull already in progress`)
488 return
489 }
490 this.pullingSourceIds.add(ds.id)
491 try {
492 for (const sess of ds.sessions) {
493 await this.executePullSession(ds.id, ds, sess)
494 }
495 } finally {
496 this.pullingSourceIds.delete(ds.id)
497 }
498 }
499
500 async triggerPull(sourceId: string, sessionId?: string): Promise<{ success: boolean; error?: string }> {
501 const ds = this.dsManager.get(sourceId)

Callers 1

startTimerFunction · 0.80

Calls 4

executePullSessionMethod · 0.95
infoMethod · 0.65
deleteMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected