Skip to content

Conversation

raunakab
Copy link
Contributor

Description

This PR removes threading from Teams connector. Specifically, the call to parallel_yield. Was causing issues (@Weves thinks the Teams library may be thread-unsafe).

Addresses: https://linear.app/danswer/issue/DAN-2077/remove-threading-from-teams-connector.

How Has This Been Tested?

Not tested...

@raunakab raunakab requested a review from a team as a code owner June 11, 2025 17:23
@raunakab raunakab requested a review from Weves June 11, 2025 17:23
Copy link

vercel bot commented Jun 11, 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 Jun 11, 2025 5:23pm

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

Removed parallel processing from Teams connector to address thread-safety issues with the underlying Teams library.

  • Eliminated parallel_yield from backend/onyx/connectors/teams/connector.py, switching to sequential channel document processing
  • Change may impact performance but improves reliability by avoiding potential thread-safety exceptions
  • Critical reliability fix with untested changes warrants careful review of sequential processing implementation

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

@raunakab raunakab enabled auto-merge June 11, 2025 18:10
@raunakab raunakab added this pull request to the merge queue Jun 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 11, 2025
@Weves Weves merged commit 1f4d071 into main Jun 11, 2025
11 checks passed
@Weves Weves deleted the fix/teams-parallel-yield branch June 11, 2025 19:19
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.

3 participants