25 lines
617 B
Python
25 lines
617 B
Python
"""
|
|
意图:继续本单 / Graph resume(骨架)。
|
|
|
|
正式:校验 thread_id + waitVersion 后 Worker 槽 resume;禁止在 HTTP 回调线程 invoke。
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import logging
|
|
|
|
from agent.channel.wecom.models import InboundMessage
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
def handle_continue_thread(message: InboundMessage, *, thread_id: str = "") -> None:
|
|
"""骨架:仅记日志。"""
|
|
if not message.has_sender():
|
|
return
|
|
logger.info(
|
|
"handler.continue_thread stub sender=%s thread_id=%s",
|
|
message.sender_id,
|
|
thread_id or "-",
|
|
)
|