Skip to content

Commit 6436c66

Browse files
committed
fix checkpoint data bug
1 parent 99e199e commit 6436c66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/onyx/connectors/google_drive/connector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ def _impersonate_user_for_retrieval(
484484
DriveRetrievalStage.MY_DRIVE_FILES,
485485
)
486486
curr_stage.stage = DriveRetrievalStage.SHARED_DRIVE_FILES
487+
curr_stage.current_folder_or_drive_id = None
487488
return # resume from next stage on the next run
488489

489490
if curr_stage.stage == DriveRetrievalStage.SHARED_DRIVE_FILES:
@@ -532,6 +533,7 @@ def _yield_from_drive(
532533
return # resume from this drive on the next run
533534
yield from _yield_from_drive(drive_id, start)
534535
curr_stage.stage = DriveRetrievalStage.FOLDER_FILES
536+
curr_stage.current_folder_or_drive_id = None
535537
return # resume from next stage on the next run
536538

537539
# In the folder files section of service account retrieval we take extra care

0 commit comments

Comments
 (0)