Archive verified rollbacks of interrupted activation journals
ABSDEV Framework CI / framework-ci (push) Successful in 20s
ABSDEV Framework CI / framework-ci (push) Successful in 20s
This commit is contained in:
+4
-5
@@ -11,6 +11,9 @@ from core.compatibility import (
|
||||
from core.locking import DeploymentLock
|
||||
|
||||
|
||||
ROLLBACK_ELIGIBLE_PHASES = frozenset({"ACTIVATING", "ACTIVATED", "FAILED"})
|
||||
|
||||
|
||||
class RecoveryError(RuntimeError):
|
||||
"""Recovery safety could not be established."""
|
||||
|
||||
@@ -140,11 +143,7 @@ class RecoveryPlanner:
|
||||
)
|
||||
|
||||
require(
|
||||
transaction["phase"] in (
|
||||
"ACTIVATING",
|
||||
"ACTIVATED",
|
||||
"FAILED",
|
||||
),
|
||||
transaction["phase"] in ROLLBACK_ELIGIBLE_PHASES,
|
||||
"Transaction phase does not permit rollback review",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user