Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet committed Jul 16, 2024
1 parent 04d09b3 commit fc04f8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions connectors/src/connectors/microsoft/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import {
import type { DataSourceConfig } from "@connectors/types/data_source_config";

const FILES_SYNC_CONCURRENCY = 10;
const PARENT_SYNC_CACHE_TTL_MS = 10 * 60 * 1000;

export async function getSiteNodesToSync(
connectorId: ModelId
Expand Down Expand Up @@ -123,8 +124,8 @@ export async function getSiteNodesToSync(
);

// for all folders, check if a parent folder or drive is already in the list,
// in which case remove it this can happen because when a user selects a
// folder to sync, then a parent folder, both are storeed in Microsoft Roots
// in which case remove it. This can happen because when a user selects a
// folder to sync, then a parent folder, both are stored in Microsoft Roots
// table

// Keeping them both in the sync list can result in various kinds of issues,
Expand Down Expand Up @@ -637,7 +638,7 @@ const getParentParentId = cacheWithRedis(
},
(connectorId, parentInternalId, startSyncTs) =>
`microsoft-${connectorId}-parent-${parentInternalId}-syncms-${startSyncTs}`,
10 * 60 * 1000
PARENT_SYNC_CACHE_TTL_MS
);

async function handlePptxFile(
Expand Down

0 comments on commit fc04f8a

Please sign in to comment.