Add some background update admin APIs (#11263)

Fixes #11259
This commit is contained in:
Erik Johnston 2021-11-08 16:08:02 +00:00 committed by GitHub
parent 0c82d4aabe
commit 4ee71b9637
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 468 additions and 18 deletions

View file

@ -446,6 +446,10 @@ class DatabasePool:
self._check_safe_to_upsert,
)
def name(self) -> str:
"Return the name of this database"
return self._database_config.name
def is_running(self) -> bool:
"""Is the database pool currently running"""
return self._db_pool.running