fix: 对齐规格解析跨端超时预算 (#257)
This commit is contained in:
@@ -26,6 +26,7 @@ from .task_models import TaskType
|
||||
|
||||
|
||||
DEFAULT_ADMIN_BASE_URL = "https://buy.833729.com"
|
||||
PURCHASE_SPEC_RESOLUTION_TIMEOUT_SECONDS = 60.0
|
||||
|
||||
|
||||
class HttpAdminGateway(AdminGateway):
|
||||
@@ -288,7 +289,10 @@ class HttpAdminGateway(AdminGateway):
|
||||
method="POST",
|
||||
)
|
||||
try:
|
||||
with self._opener(request, timeout=self._timeout_seconds) as response:
|
||||
with self._opener(
|
||||
request,
|
||||
timeout=PURCHASE_SPEC_RESOLUTION_TIMEOUT_SECONDS,
|
||||
) as response:
|
||||
status = getattr(response, "status", None) or response.getcode()
|
||||
body = response.read()
|
||||
except HTTPError as exc:
|
||||
|
||||
Reference in New Issue
Block a user