Repository navigation
docs(extensions): describe maxLifetime replacement - #987
Open
ParidelPooya wants to merge 2 commits into
Open
ParidelPooya wants to merge 2 commits into
ParidelPooya wants to merge 2 commits into
Conversation
The agent runtime's maxLifetime ends the instance, not the session. The next job with the same session ID gets a new instance. The docstrings said that maxLifetime ends the session, and that the session handler must fit within it. Describe instance replacement in AgentcoreSessionConfig, AgentcoreInvokeOptions.timeout and AgentcoreConfig.timeout.
The idle timeout and maxLifetime end the session's instance. The same session ID then gets a new instance for the next job, without the old memory and files. Fix the docstrings, comments, READMEs and the stop failure log message that said the session ends.
ParidelPooya
marked this pull request as ready for review
November 24, 2026 01:03
ParidelPooya
had a problem deploying
to
ai-pr-review-runtime
November 24, 2026 01:03 — with
GitHub Actions
Error
Contributor
Codex AI reviewOne approach finding under rule 5 at Reviewed commit |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fix the AgentCore text that says the agent runtime's
maxLifetimeor idle timeout ends the session. Both end the session's instance.Why
maxLifetimeis the maximum lifetime of the instance. The session can persist beyond it, with a new instance.idleRuntimeSessionTimeout) also ends the instance after a time with no running job.agentcore_sessioncheckpoints the runtime session ID and sends every job with it.maxLifetimeor the idle timeout, the next job runs in a new instance of the same session. The memory and the files outside configured session storage are lost.The text said that
maxLifetimeor the idle timeout ends the session, and that the whole session handler must fit withinmaxLifetime.Change
Docstrings, comments, READMEs, and one log message. No behavior change.
AgentcoreSessionConfig: describe instance replacement. Drop the rule that the handler and its waits must fit withinmaxLifetime.AgentcoreInvokeOptions.timeout: a job that runs when the instance stops fails at its heartbeat timeout or at this timeout.AgentcoreConfig.timeout: say "instance" instead of "session". The rule to keep the timeout withinmaxLifetimestays.AgentcoreConfig,AgentcoreSessionConfig.agent_runtime_arn, both READMEs: after the idle timeout with no running job, the same session ID gets a new instance (microVM) without the old memory and files.operation.py,session.py,errors.py: the idle timeout ends the session's instance.Testing
test_create_raises_when_boto3_cannot_build_the_client, which fails only on this host.mypy src tests: no issues in 49 (extensions) and 20 (compute-worker) source files.hatch fmt --check: all files already formatted.lintcommit.py --range origin/main..HEAD: pass.Closes #986
Part of #954
Twin: aws/aws-durable-execution-sdk-js#1282