Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permissions: read-all

jobs:
Run_UT:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand All @@ -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

Expand All @@ -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

Expand Down
3 changes: 1 addition & 2 deletions src/utils/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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