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

improves trackers thread pool #1340

Merged
merged 5 commits into from
May 8, 2024
Merged

Conversation

rudolfix
Copy link
Collaborator

@rudolfix rudolfix commented May 8, 2024

Description

Tracker pools were lazily instantiated. In case of many pipelines running at the same time this could cause problems.

  1. all tracker pools are instantiated when telemetry starts
  2. tracker pools have mandatory prefixes
  3. they unregister at_exit when stopped

@rudolfix rudolfix requested a review from sh-rp May 8, 2024 09:11
Copy link

netlify bot commented May 8, 2024

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit f616bc9
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/663b8591d6be0c00083a5eba

sh-rp
sh-rp previously approved these changes May 8, 2024
Copy link
Collaborator

@sh-rp sh-rp left a comment

Choose a reason for hiding this comment

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

looks alright. what where the exact problems that where happening before?

@rudolfix rudolfix force-pushed the rfix/improves-trackers-thread-pool branch from a0486bf to 0c08ed6 Compare May 8, 2024 12:31
@@ -130,7 +130,7 @@ jobs:
if: runner.os != 'Windows'
name: Run extract and pipeline tests Linux/MAC
- run: |
poetry run pytest tests/extract tests/pipeline tests/libs tests/cli/common tests/destinations
poetry run pytest tests/extract tests/pipeline tests/libs tests/cli/common tests/destinations -m "not forked"
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need to skip these tests on windows?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

because they are run in fork and that is not available on windows. the test is messing up with global objects

@rudolfix rudolfix merged commit 80684d1 into devel May 8, 2024
48 of 50 checks passed
@rudolfix rudolfix deleted the rfix/improves-trackers-thread-pool branch May 8, 2024 18:52
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