Skip to content

[Feature] Add an option for configuring agent inactivity timeouts #78

@yarolegovich

Description

@yarolegovich

It might be useful to implement a queue-write-based heartbeat mechanism.

For example, there might be a bug in AgentExecutor implementation where not all execution paths set TaskStatusUpdateEvent.Final and consumers never terminate.

RequestHandler can be configurable with an option like WithAgentInactivityTimeout(). The timeout will be reset whenever an event is written to a queue. And if we don't receive any activity in the specified time window, we terminate the producer-consumer errgroup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions