integration icon indicating copy to clipboard operation
integration copied to clipboard

HacsPluginRepository.update_repository triggers asyncio execution time warnings

Open bdraco opened this issue 4 months ago • 2 comments

System Health details

n/a

Checklist

  • [X] I'm running the newest version of HACS https://github.com/hacs/integration/releases/latest
  • [X] I have enabled debug logging for my installation.
  • [X] I have filled out the issue template to the best of my ability.
  • [X] I have read https://hacs.xyz/docs/issues
  • [X] This issue is related to the backend (integration part) of HACS.
  • [X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • [X] This issue is not a duplicate issue of currently open or issues pending release.

Describe the issue

I'm pretty sure its the time complexity of update_filenames triggering this

Reproduction steps

Enable asyncio debug, restart HA

Debug logs

2024-02-15 10:31:55.990 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-12346' coro=<HacsPluginRepository.update_repository() running at /config/custom_components/hacs/utils/decorator.py:28> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.11/asyncio/base_events.py:427> cb=[gather.<locals>._done_callback() at /usr/local/lib/python3.11/asyncio/tasks.py:764] created at /usr/local/lib/python3.11/asyncio/tasks.py:680> took 0.398 seconds
2024-02-15 10:31:56.207 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-12347' coro=<HacsPluginRepository.update_repository() running at /config/custom_components/hacs/utils/decorator.py:28> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.11/asyncio/base_events.py:427> cb=[gather.<locals>._done_callback() at /usr/local/lib/python3.11/asyncio/tasks.py:764] created at /usr/local/lib/python3.11/asyncio/tasks.py:680> took 0.217 seconds
2024-02-15 10:31:56.480 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-12344' coro=<HacsPluginRepository.update_repository() running at /config/custom_components/hacs/utils/decorator.py:28> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.11/asyncio/base_events.py:427> cb=[gather.<locals>._done_callback() at /usr/local/lib/python3.11/asyncio/tasks.py:764] created at /usr/local/lib/python3.11/asyncio/tasks.py:680> took 0.273 seconds


### Diagnostics dump

_No response_

bdraco avatar Feb 15 '24 16:02 bdraco