Integrate durable Nginx and worker containment into the runtime
ABSDEV Framework CI / framework-ci (push) Successful in 22s
ABSDEV Framework CI / framework-ci (push) Successful in 22s
This commit is contained in:
+10
-4
@@ -10,6 +10,7 @@ from core.compatibility import require_compatible
|
||||
from core.backup_evidence import BackupEvidence
|
||||
from core.operation_guard import OperationGuard
|
||||
from core.locking import DeploymentLock
|
||||
from core.services import ContainedServiceLifecycle
|
||||
|
||||
|
||||
class DeploymentError(RuntimeError):
|
||||
@@ -50,7 +51,8 @@ class DeploymentController:
|
||||
self.services = services
|
||||
self.health = health
|
||||
self.runtime_check = runtime_check
|
||||
self.stopped_check = stopped_check
|
||||
self.contained_runtime = isinstance(services, ContainedServiceLifecycle)
|
||||
self.stopped_check = services.stopped if self.contained_runtime else stopped_check
|
||||
|
||||
require(
|
||||
isinstance(backup_evidence, BackupEvidence),
|
||||
@@ -211,9 +213,9 @@ class DeploymentController:
|
||||
|
||||
self.services.refresh()
|
||||
|
||||
operation = "restore background workers"
|
||||
|
||||
self.services.resume()
|
||||
if not self.contained_runtime:
|
||||
operation = "restore background workers"
|
||||
self.services.resume()
|
||||
|
||||
operation = "verify application health"
|
||||
|
||||
@@ -235,6 +237,10 @@ class DeploymentController:
|
||||
|
||||
advance("VERIFIED")
|
||||
|
||||
if self.contained_runtime:
|
||||
operation = "reopen verified release"
|
||||
self.services.resume()
|
||||
|
||||
return transaction
|
||||
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user