1450
This commit is contained in:
@@ -402,17 +402,18 @@ async def main():
|
||||
)
|
||||
|
||||
# Publish disabled (kept in place, commented out)
|
||||
# resp, code = http_post_json(rmq_url, rmq_body, user=RMQ_USER, password=RMQ_PASS, timeout=RMQ_TIMEOUT)
|
||||
# if code != 200:
|
||||
# await log_status(f"[{ts()}] rmq: publish immediate http={code} host={host}")
|
||||
# else:
|
||||
# routed = False
|
||||
# try:
|
||||
# routed = bool((resp or {}).get("routed", False))
|
||||
# except Exception:
|
||||
# routed = False
|
||||
# if not routed:
|
||||
# await log_status(f"[{ts()}] rmq: publish immediate routed=false host={host}")
|
||||
resp, code = http_post_json(rmq_url, rmq_body, user=RMQ_USER, password=RMQ_PASS, timeout=RMQ_TIMEOUT)
|
||||
if code != 200:
|
||||
await log_status(f"[{ts()}] rmq: publish immediate http={code} host={host}")
|
||||
else:
|
||||
routed = False
|
||||
try:
|
||||
routed = bool((resp or {}).get("routed", False))
|
||||
except Exception:
|
||||
routed = False
|
||||
if not routed:
|
||||
await log_status(f"[{ts()}] rmq: publish immediate routed=false host={host}")
|
||||
|
||||
|
||||
# Bell behavior: ring 3x BEL when action_next present
|
||||
bell_prefix = "\a" * 3
|
||||
|
||||
Reference in New Issue
Block a user