-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix window_start #4689
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
Fix window_start #4689
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
sanitized_e.__traceback__ = e.__traceback__ | ||
raise sanitized_e | ||
try: | ||
sanitized_e = type(e)(str(e)[:1024]) |
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.
this previously raised an exception for exception types that needed more args
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.
PR Summary
This PR fixes polling connector indexing by modifying how the start time window is determined, ensuring more accurate document polling through proper tracking of poll range timestamps.
- Added
poll_range_start
andpoll_range_end
fields in/backend/onyx/server/documents/models.py
to properly track polling windows - Modified
get_last_successful_attempt_poll_range_end
in/backend/onyx/db/connector_credential_pair.py
to use actual poll end times instead of start times - Added comprehensive integration test in
/backend/tests/integration/tests/indexing/test_polling.py
to validate polling window behavior - Updated indexing logic in
/backend/onyx/background/indexing/run_indexing.py
to reuse polling windows for failed/canceled attempts - Enhanced error handling in
/backend/onyx/background/celery/tasks/indexing/tasks.py
for exception sanitization failures
5 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile
* Fix window_start * Add comment
* Fix window_start * Add comment
* Fix window_start * Add comment
Description
Fixes https://linear.app/danswer/issue/DAN-1964/fix-poll-range-start
How Has This Been Tested?
Integration test.
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.