Compare commits

..

2 Commits

Author SHA1 Message Date
Stefan Allius
cf94cb19f2 Merge branch 'renovate/ghcr.io-hassio-addons-base-18.x' of https://github.com/s-allius/tsun-gen3-proxy into renovate/ghcr.io-hassio-addons-base-18.x 2025-07-16 20:10:48 +02:00
Stefan Allius
7889e329ef Save a tast reference
Important: Save a reference of the created task,
to avoid a task disappearing mid-execution. The
event loop only keeps weak references to tasks.
A task that isn’t referenced elsewhere may get
garbage collected at any time, even before it’s
done. For reliable “fire-and-forget” background
tasks, gather them in a collection
2025-07-15 23:23:35 +02:00
3 changed files with 2 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ jobs:
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Python 3.13
uses: actions/setup-python@v6
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies

View File

@@ -7,7 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [unreleased]
- Update dependency pytest-asyncio to v1.1.0
- save task references, to avoid a task disappearing mid-execution
- catch socket.gaierror exception and log this with info level
- Update dependency coverage to v7.9.2

View File

@@ -1,6 +1,6 @@
flake8==7.3.0
pytest==8.4.1
pytest-asyncio==1.1.0
pytest-asyncio==1.0.0
pytest-cov==6.2.1
python-dotenv==1.1.1
mock==5.2.0