Restrict stopping core during migrations with force option (#5205)

This commit is contained in:
Mike Degatano
2024-07-25 11:14:45 -04:00
committed by GitHub
parent 591b9a4d87
commit 0bbd15bfda
6 changed files with 155 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
"""Core Exceptions."""
from collections.abc import Callable
@@ -339,6 +340,12 @@ class APIAddonNotInstalled(APIError):
"""Not installed addon requested at addons API."""
class APIDBMigrationInProgress(APIError):
"""Service is unavailable due to an offline DB migration is in progress."""
status = 503
# Service / Discovery