From 52dc9750eb1b2edb287132887adbb7b51b124ca6 Mon Sep 17 00:00:00 2001 From: Anastasiia Pnevskaia Date: Fri, 4 Jul 2025 15:44:35 +0200 Subject: [PATCH 1/4] Check CI. --- src/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.py b/src/main.py index 445a33f..dea0d57 100644 --- a/src/main.py +++ b/src/main.py @@ -29,6 +29,7 @@ def __call__(cls, *args, **kwargs): return cls.__single_instance + class Telemetry(metaclass=SingletonMetaClass): """ The main class to send telemetry data. It uses singleton pattern. The instance should be initialized with the From 05361c573a40e2f49edef8cdf58088da349af65b Mon Sep 17 00:00:00 2001 From: Anastasiia Pnevskaia Date: Fri, 4 Jul 2025 15:47:26 +0200 Subject: [PATCH 2/4] Update ubuntu version in workflows. --- .github/workflows/precommit.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index 270a5d5..e9fc841 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -5,7 +5,7 @@ permissions: read-all jobs: Run_UT: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -14,7 +14,7 @@ jobs: python3 -m unittest discover -p "*_test.py" ./ Build_Wheel: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -28,7 +28,7 @@ jobs: path: ${{ github.workspace }}/**/*.whl Run_Docker_Tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 66519aed5b48695692d087365f75a3105d3a7cb1 Mon Sep 17 00:00:00 2001 From: Anastasiia Pnevskaia Date: Fri, 4 Jul 2025 15:48:45 +0200 Subject: [PATCH 3/4] Remove not needed change. --- src/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.py b/src/main.py index dea0d57..445a33f 100644 --- a/src/main.py +++ b/src/main.py @@ -29,7 +29,6 @@ def __call__(cls, *args, **kwargs): return cls.__single_instance - class Telemetry(metaclass=SingletonMetaClass): """ The main class to send telemetry data. It uses singleton pattern. The instance should be initialized with the From b748c0dba114fccfb15f4c8518ee2c69ed219346 Mon Sep 17 00:00:00 2001 From: Anastasiia Pnevskaia Date: Fri, 4 Jul 2025 16:48:47 +0200 Subject: [PATCH 4/4] Update shutdown. --- src/utils/sender.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/sender.py b/src/utils/sender.py index badab50..5d91be1 100644 --- a/src/utils/sender.py +++ b/src/utils/sender.py @@ -55,10 +55,9 @@ def force_shutdown(self, timeout: float): need_sleep = True if need_sleep: sleep(timeout) - self.executor.shutdown(wait=False) + self.executor.shutdown(wait=False, cancel_futures=True) try: self.executor._threads.clear() - futures.thread._threads_queues.clear() except Exception as err: pass # nosec