mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Prevent simultaneous importing of database/config
This commit is contained in:
parent
9095fc0c7a
commit
c814f219a2
2 changed files with 12 additions and 0 deletions
|
@ -68,6 +68,11 @@ def validate_database(database=None):
|
|||
|
||||
|
||||
def import_tautulli_db(database=None, method=None, backup=False):
|
||||
if IS_IMPORTING:
|
||||
logger.warn("Tautulli Database :: Another Tautulli database is currently being imported. "
|
||||
"Please wait until it is complete before importing another database.")
|
||||
return False
|
||||
|
||||
db_validate = validate_database(database=database)
|
||||
if not db_validate == 'success':
|
||||
logger.error("Tautulli Database :: Failed to import Tautulli database: %s", db_validate)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue