core/homeassistant
J. Nick Koston 9a79320861
Mark executor jobs as background unless created from a tracked task (#114450)
* Mark executor jobs as background unless created from a tracked task

If the current task is not tracked the executor job should not
be a background task to avoid delaying startup and shutdown.

Currently any executor job created in a untracked task or
background task would end up being tracked and delaying
startup/shutdown

* import exec has the same issue

* Avoid tracking import executor jobs

There is no reason to track these jobs as they are always awaited
and we do not want to support fire and forget import executor jobs

* fix xiaomi_miio

* lots of fire time changed without background await

* revert changes moved to other PR

* more

* more

* more

* m

* m

* p

* fix fire and forget tests

* scrape

* sonos

* system

* more

* capture callback before block

* coverage

* more

* more races

* more races

* more

* missed some

* more fixes

* missed some more

* fix

* remove unneeded

* one more race

* two
2024-03-30 00:16:53 -04:00
..
auth
backports Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
brands Add eq3btsmart integration (#109291) 2024-03-28 15:20:56 -10:00
components Update frontend to 20240329.1 (#114459) 2024-03-29 22:13:31 +01:00
generated Add Integration for Energenie Power-Sockets (#113097) 2024-03-29 13:29:14 +01:00
helpers Enable ruff TRY401 (#114395) 2024-03-29 07:20:36 +01:00
scripts Avoid creating unneeded Context and Event objects when firing events (#113798) 2024-03-20 09:40:06 +01:00
util Replace partial annotations (#114177) 2024-03-28 18:33:39 +01:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py Preload storage for integrations we know we are going to setup (#114192) 2024-03-25 15:49:54 -10:00
config.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
config_entries.py Add translation support to Config Entry errors (#106305) 2024-03-28 10:52:21 +01:00
const.py Bump version to 2024.5.0dev0 (#114324) 2024-03-27 19:43:38 +01:00
core.py Mark executor jobs as background unless created from a tracked task (#114450) 2024-03-30 00:16:53 -04:00
data_entry_flow.py Enable ruff TRY401 (#114395) 2024-03-29 07:20:36 +01:00
exceptions.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
loader.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
package_constraints.txt Update frontend to 20240329.1 (#114459) 2024-03-29 22:13:31 +01:00
requirements.py
runner.py
setup.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
strings.json Smhi add reconfigure step to config flow (#114044) 2024-03-23 11:01:59 +01:00