Skip to content
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

feat: add configuration option for connect timeout #222

Closed
wants to merge 1 commit into from

Conversation

smitp
Copy link
Contributor

@smitp smitp commented Aug 10, 2023

Related issue

sqlite3.connect

Default timeout 60s.

Database locking issues still occur with 60s timeout and >100MB sqlite database when xdist is running 16 workers. Add an option to specify timeout --testmon-connect-timeout

@tarpas
Copy link
Owner

tarpas commented Oct 31, 2023

I don't think this is the way to fix the problem because:

  • there shouldn't actually be any write contention between xdist workers. They all should send information to controller which is only one process writing the information to the sqlite file
  • You might be getting deadlock sometimes so you would have to wait indefinitely...

@tarpas tarpas closed this Oct 31, 2023
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