From c54d989fc7a7cec1d5ecc09ec22ceda8f588a009 Mon Sep 17 00:00:00 2001 From: kronecker <2026692687@qq.com> Date: Sat, 24 Oct 2026 03:22:54 +0800 Subject: [PATCH] fix(delivery): initialize broker client before probe deadline --- scripts/release/node_health.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/release/node_health.py b/scripts/release/node_health.py index d199148..a10d82f 100644 --- a/scripts/release/node_health.py +++ b/scripts/release/node_health.py @@ -7,6 +7,7 @@ import logging import os import subprocess import urllib.request +from importlib import import_module from pathlib import Path from uuid import UUID @@ -615,6 +616,11 @@ def observe(*, probe: bool) -> dict: errors.append("factory_status_unavailable") if probe: try: + # Blocking module initialization belongs to the fixed 300-second + # helper budget. Load the packaged client before starting the + # cancellable six-second network operation. + import_module("aio_pika") + import_module("pamqp.commands") value = fields( http( "http://127.0.0.1:8100/internal/operations/probe-id",