Skip to content

.NET & Python: [Durable Agents] Automatic thread/session cleanup TTL #2615

Open

Description

@cgillum

The Durable Task extension for Agent Framework ("Durable Agents") provides built-in thread storage. However, there's no clear way to cleanup the thread storage data, which will accumulate in either the Azure Storage account or in the Durable Task Scheduler resource owned by the user.

This issue tracks a proposal to create configurable TTLs on durable agents that allow them to be "garbage collected" if there aren't any interactions after a period of time. For example, if a particular agent session is idle for 30 days, the underlying entity state (e.g., the conversation history) gets deleted. Each new interaction with the agent would reset the TTL. Any messages to an "expired" agent session will result in a new conversation history.

Design doc

This is needed for each language we support:

  • .NET
  • Python

Activity

  1. changed the title [-][Durable Agents] Automatic thread/session cleanup TTL[/-] [+].NET: [Durable Agents] Automatic thread/session cleanup TTL[/+] on Dec 3, 2025
  2. changed the title [-].NET: [Durable Agents] Automatic thread/session cleanup TTL[/-] [+]Python: [Durable Agents] Automatic thread/session cleanup TTL[/+] on Dec 3, 2025
  3. changed the title [-]Python: [Durable Agents] Automatic thread/session cleanup TTL[/-] [+].NET & Python: [Durable Agents] Automatic thread/session cleanup TTL[/+] on Dec 3, 2025
  4. cgillum commented on Jun 2, 2026

    @cgillum
    MemberAuthor

    Yes I believe this is still relevant. Gavin Aguiar (@gavin-aguiar) are you still the right owner or should it be Ahmed Muhsin (@ahmedmuhsin)?

  5. gavin-aguiar commented on Jun 2, 2026

    @gavin-aguiar
    Contributor

    Ahmed Muhsin (@ahmedmuhsin) will work on this. Assigning it to him

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETUsage: [Issues, PRs], Target: .NetdurabletaskUsage: [Issues, PRs], Target: durable taskhostingUsage: [Issues, PRs], Target: all hosting related solutionspythonUsage: [Issues, PRs], Target: Python

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions