log warning message if db not ready

This commit is contained in:
Oliver Walters 2022-01-07 18:00:38 +11:00
parent 668e2bfcd5
commit 8efd45f0ad
2 changed files with 3 additions and 3 deletions

View File

@ -156,7 +156,7 @@ class ScheduleMixin:
) )
except (ProgrammingError, OperationalError): except (ProgrammingError, OperationalError):
# Database might not yet be ready # Database might not yet be ready
pass logger.warning("register_tasks failed, database not ready")
def unregister_tasks(self): def unregister_tasks(self):
""" """
@ -177,7 +177,7 @@ class ScheduleMixin:
pass pass
except (ProgrammingError, OperationalError): except (ProgrammingError, OperationalError):
# Database might not yet be ready # Database might not yet be ready
pass logger.warning("unregister_tasks failed, database not ready")
class UrlsMixin: class UrlsMixin:

View File

@ -338,7 +338,7 @@ class PluginsRegistry:
logger.info(f"Removed {deleted_count} old scheduled tasks") logger.info(f"Removed {deleted_count} old scheduled tasks")
except (ProgrammingError, OperationalError): except (ProgrammingError, OperationalError):
# Database might not yet be ready # Database might not yet be ready
pass logger.warning("activate_integration_schedule failed, database not ready")
def deactivate_integration_schedule(self): def deactivate_integration_schedule(self):
pass pass