Implement P05 checked services and safe selected delivery recovery
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a092fe-13b1-7f12-ac74-7d258af4d79c
This commit is contained in:
parent
99618488e0
commit
ac0eb14b75
15 changed files with 735 additions and 88 deletions
|
|
@ -63,7 +63,7 @@ def create_application() -> PortalApplication:
|
|||
),
|
||||
timeout_seconds=float(os.environ.get("USER_ENGINE_DELIVERY_TIMEOUT", "5")),
|
||||
)
|
||||
return PortalApplication(
|
||||
app = PortalApplication(
|
||||
service,
|
||||
trusted_proxy_secret=_required("USER_ENGINE_PROXY_SECRET"),
|
||||
login_url=_required("USER_ENGINE_LOGIN_URL"),
|
||||
|
|
@ -120,6 +120,9 @@ def create_application() -> PortalApplication:
|
|||
),
|
||||
)
|
||||
|
||||
from user_engine.operations_status import check_services
|
||||
app.operations_probe = lambda: check_services(app.oidc_client, app.outbox_delivery)
|
||||
return app
|
||||
|
||||
def main() -> None:
|
||||
host = os.environ.get("USER_ENGINE_HOST", "0.0.0.0")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue