-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connector checkpointing #3876
base: main
Are you sure you want to change the base?
Connector checkpointing #3876
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
b0e50cf
to
f69739e
Compare
backend/alembic/versions/b7a7eee5aa15_add_checkpointing_failure_handling.py
Show resolved
Hide resolved
if (failed_document is None and failed_entity is None) or ( | ||
failed_document is not None and failed_entity is not None | ||
): | ||
raise ValueError( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a Union type then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, to me tradeoffs for each. using isinstance
to check type (which is necessary if using Union type) feels bad, thus this approach
except Exception as e: | ||
logger.exception( | ||
"Connector run exceptioned after elapsed time: " | ||
f"{time.time() - start_time} seconds" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
time.monotonic probably better here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched!
320b62d
to
debc79a
Compare
more stuff for checkpointing Basic implementation FE stuff More checkpointing/failure handling rebase rebase initial scaffolding for IT IT to test checkpointing Cleanup cleanup Fix it Rebase Add todo Fix actions IT Test more Pagination + fixes + cleanup Fix IT networking fix it
3f8701d
to
5b06b95
Compare
Description
https://linear.app/danswer/issue/DAN-1400/connector-checkpointing-continue-on-failure
How Has This Been Tested?
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.