feat(tasks): track authenticated native progress until final reply
Renew broker idle waits only for encrypted current-task progress, keep an absolute deadline and binding/session/worker fences, and retain original-message reply deduplication. Add guarded prepare-update staging that reuses the active broker key material and application configuration. Validation: 216 passed, 2 skipped; guarded update and long-task routing covered with synthetic Docker configuration and loopback WebSocket tests. Real ECS build and acceptance remain pending.
This commit is contained in:
@@ -34,6 +34,7 @@ class Settings(BaseSettings):
|
||||
# A fixed allowlist, never a user supplied upstream URL.
|
||||
proxy_paths: str = "/open-apis/drive/v1/files,/open-apis/docx/v1/documents"
|
||||
request_timeout: int = 45
|
||||
task_tracking_timeout: int = 1800
|
||||
max_body: int = 262144
|
||||
max_pending: int = 1000
|
||||
max_devices: int = 1000
|
||||
@@ -49,6 +50,8 @@ class Settings(BaseSettings):
|
||||
|
||||
@model_validator(mode="after")
|
||||
def validate_runtime(self):
|
||||
if not 30 <= self.task_tracking_timeout <= 3600:
|
||||
raise ValueError("task tracking timeout must be 30-3600 seconds")
|
||||
if self.credential_mode not in {"legacy", "broker"}:
|
||||
raise ValueError("invalid credential mode")
|
||||
if self.credential_mode == "broker" and self.role in {"connector","router"}:
|
||||
|
||||
Reference in New Issue
Block a user