[AgentCore session] Remove the unused session timeout

オープン 初心者向け
#970 コメント 1 件 リアクション 0 件 担当者 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時間
マージ済み PR(30日)
76

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/aws-durable-execution-sdk-python のほかの issue

aws/aws-durable-execution-sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。