[AgentCore session] Remove the unused session timeout

未關閉 適合新手
#970 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@srivilliamsai 已經在處理了。

開始於 2026年11月20日。

  • #973 來自 @srivilliamsai —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
77/100
Issue 類型
重構
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python
領域
backend

研究方向

先閱讀 AgentcoreSessionConfig、其工作階段設定檢查和型別文件;issue 未註明它們的檔案路徑。查看 epic 的規則 2,找出相應的措辭。移除工作階段逾時欄位及其檢查,說明 runtime 的 maxLifetime 會結束工作階段,並確認 invoke 選項的逾時設定維持不變。

由索引模型根據 Issue 內容生成。

描述

needs-triage

Part of the agentcore_session epic, #954.

What

Remove timeout from AgentcoreSessionConfig.

Why
  1. AgentcoreSessionConfig.timeout says it is the lifetime of the session.
  2. agentcore_session only checks that the value is at least 1 second. Nothing ends the session when the time is up. A handler can wait longer, and the session stops only when the handler returns.
  3. The agent runtime's maxLifetime already ends every session. Each job also has its own timeout and heartbeat_timeout in AgentcoreInvokeOptions.
  4. So the session timeout adds a setting that does nothing. Enforcing it would need a durable deadline that stops the session, which is more code for a limit the runtime already sets.

So the session config drops the field, and the docs state the rule instead: the runtime's maxLifetime ends the session, and a job that still runs then ends with it.

Done when
  • AgentcoreSessionConfig has no timeout. The config check no longer checks it for a session.
  • The type docs and the epic rule 2 say that maxLifetime ends the session.
  • AgentcoreInvokeOptions.timeout and heartbeat_timeout do not change.
Context

Found in review of #968.

Keep the pull request to this item only. The twin item is in aws/aws-durable-execution-sdk-js.

主要語言
Python
星號
59
分支
32
平均合併
1 天 5 小時
30 天內合併 PR
76

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

aws/aws-durable-execution-sdk-python 的其他 Issue

查看 aws/aws-durable-execution-sdk-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。