(ds: DataSource)
| 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) |
no test coverage detected