Skip to content

Conversation

Weves
Copy link
Contributor

@Weves Weves commented May 13, 2025

Description

Fixes https://linear.app/danswer/issue/DAN-1969/another-small-checkpointing-logic-fix

How Has This Been Tested?

Tested locally

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@Weves Weves requested a review from a team as a code owner May 13, 2025 00:01
Copy link

vercel bot commented May 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2025 0:15am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Fixed checkpointing logic to ensure proper state persistence and recovery in indexing operations.

  • Added initial checkpoint save in run_indexing.py immediately after checkpoint creation/retrieval to prevent state loss on early failures
  • Removed redundant checkpoint save operation in get_latest_valid_checkpoint since the checkpoint already exists in storage
  • Changes are well-tested through extensive unit and integration tests covering various checkpoint scenarios
  • Fixes issue with checkpoint recovery when indexing fails before first document batch

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@Weves Weves added this pull request to the merge queue May 13, 2025
Merged via the queue into main with commit d91f776 May 13, 2025
11 checks passed
@Weves Weves deleted the small-checkpointing-logic-tweak branch May 13, 2025 02:54
ferdinandl007 pushed a commit to ferdinandl007/onyx that referenced this pull request May 19, 2025
* Fix initial checkpoint save

* Improve comment

* Another small fix
ZhipengHe pushed a commit to ZhipengHe/onyx that referenced this pull request Jun 6, 2025
* Fix initial checkpoint save

* Improve comment

* Another small fix
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* Fix initial checkpoint save

* Improve comment

* Another small fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants