Skip to content

[Feature Request] strands_agents: give model and sandbox activities a 10-second default heartbeat timeout #498

Closed

Description

@campoy

Is your feature request related to a problem? Please describe.

TemporalAgent, TemporalModel and TemporalSandbox default heartbeat_timeout to None, and their activities only heartbeat when it's set. So by default:

  • A cancel never reaches a running model call or sandbox command. It runs to the end.
  • A lost worker goes unnoticed until the start-to-close timeout.

This is the Python Strands part of #491.

Describe the solution you'd like

  • Default heartbeat_timeout to 10 seconds in all three. The model and sandbox activities already heartbeat on a timer at half the timeout, so they don't need to change. Passing None turns heartbeats off.
  • strands_get_model_config runs synchronously, so it can't heartbeat. Schedule it without a heartbeat timeout, or a model factory slower than 10 seconds would fail it.

Additional context

TemporalMCPClient needs the same default, but only once Strands uses a temporalio-mcp release with #494. Today's MCP Activities don't heartbeat, so a default there would fail every MCP call longer than 10 seconds.

Activity

  1. added
    enhancement
    on Nov 12, 2026
  2. added a commit that references this issue on Nov 16, 2026
    4ae1b5c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions