Skip to content

Commit

Permalink
fix: skip doc tracker hook if sync_type not incremental (#9398)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Fontanier <[email protected]>
  • Loading branch information
fontanierh and Henry Fontanier authored Dec 16, 2024
1 parent ed85d83 commit 052c9b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ export const documentTrackerUpsertHook: DocumentUpsertHook = {
documentId,
documentHash,
dataSourceConnectorProvider,
upsertContext,
}) => {
if (upsertContext?.sync_type !== "incremental") {
return;
}

const owner = auth.workspace();
if (!owner) {
return;
Expand Down
6 changes: 0 additions & 6 deletions front/temporal/document_tracker/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ export async function runDocumentTrackerWorkflow(
documentHash: string,
dataSourceConnectorProvider: ConnectorProvider | null
) {
void workspaceId;
void dataSourceId;
void documentId;
void documentHash;
void dataSourceConnectorProvider;

let signaled = false;
const debounceMs = (() => {
if (!dataSourceConnectorProvider) {
Expand Down

0 comments on commit 052c9b3

Please sign in to comment.