Commit graph

18 commits

Author SHA1 Message Date
J. Nick Koston
c365454afb
Revert "Initial orjson support ()" ()
This was causing the wheels to fail to build. We need
to workout why when we don't have release pressure

This reverts commit d9d22a9556.
2022-05-31 13:51:55 -07:00
J. Nick Koston
d9d22a9556
Initial orjson support () 2022-05-31 12:18:11 -07:00
J. Nick Koston
a8f1dda004
Use ciso8601 for parsing MySQLdb datetimes ()
* Use ciso8601 for parsing MySQLDB datetimes

The default parser is this:

5340191feb/MySQLdb/times.py (L66)

* tweak

* tweak

* add coverage for building the MySQLdb connect conv param
2022-05-13 19:26:09 -05:00
J. Nick Koston
a8aa0e1cca
Add Estimated Database Size to the recorder system health () 2022-05-07 21:02:54 -07:00
J. Nick Koston
29bda196b5
Break apart recorder into tasks and core modules () 2022-05-02 21:53:56 -07:00
J. Nick Koston
37d39ac6d3
Add restored to the set of attributes excluded from being recorded in the db ()
* Add restored to the set of attributes excluded from being recorded in the database

- Noticed on restart that the table gets 100s of new rows because
  of these

* Update homeassistant/components/recorder/const.py
2022-04-16 23:09:08 +02:00
J. Nick Koston
c85387290a
Increase recorder queue max backlog to 40k, improve message () 2022-04-14 11:45:07 -10:00
J. Nick Koston
522a9bb6b1
Exclude supported features and attribution from being recorded in the database () 2022-04-03 13:51:42 +02:00
J. Nick Koston
0c0df07c52
Avoid hashing attributes when they are already in the cache () 2022-03-19 23:33:37 -07:00
J. Nick Koston
bc862e97ed
Use a dedicated executor pool for database operations ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-17 23:09:01 -10:00
Erik Montnemery
4c5aca93df
Add recorder status WS API ()
* Add recorder status WS API

* Rename recorder/status to recorder/info

* Silence pylint

* Improve tests

* Address review comments

* Tweak

* Try to fix tests

* Try to debug flaky tests

* Try to fix tests

* Revert changes to async_migration_in_progress

* Try to fix tests

* Remove debug prints

* Apply suggestions from code review
2021-11-04 16:46:45 +01:00
J. Nick Koston
0099b54489
Fix recorder purge with sqlite3 < 3.32.0 () 2021-07-12 22:03:13 +02:00
J. Nick Koston
a060acc2b1
Fix recorder with MSSQL ()
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-03-09 11:16:19 -10:00
J. Nick Koston
557684c3ce
Add ability to disable the sqlite3 quick_check () 2020-09-02 10:12:56 +02:00
Pascal Vizeli
c291d4aa7d
Intelligent timeout handler for setup/bootstrap ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-05 14:58:19 +02:00
J. Nick Koston
1acdb28cdd
Automatically recover when the sqlite3 database is malformed or corrupted ()
* Validate sqlite database on startup and move away if corruption is detected.

* do not switch context in test -- its all sync
2020-07-17 19:07:37 -10:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
61909e873f Feature/reorg recorder ()
* Re-organize recorder

* Fix history

* Fix history stats

* Fix restore state

* Lint

* Fix session reconfigure

* Move imports around

* Do not start recording till HASS started

* Lint

* Fix logbook

* Fix race condition recorder init

* Better reporting on errors
2017-02-26 14:38:06 -08:00