Skip to content

Agent session to linger longer #76

Closed

Description

@datasciencemonkey

Customer request - want session to linger longer for atleast a day before clean up runs.

Activity

  1. datasciencemonkey commented on Mar 23, 2026

    @datasciencemonkey
    OwnerAuthor

    the issue was reported by @victoroliveira1

  2. added a commit that references this issue on Mar 23, 2026
    71e00fb
  3. datasciencemonkey commented on Mar 23, 2026

    @datasciencemonkey
    OwnerAuthor

    This is addressed in the upcoming PR on branch fix/session-linger-1day.

    What changed:

    • Session timeout bumped from 5 minutes to 24 hours
    • Cleanup interval changed from 60s to 15 minutes

    How it works — this is defensive by design:

    • Active sessions send heartbeats every 30s, which reset the timeout clock. As long as a session is active, it lives indefinitely.
    • The 24-hour timeout only kicks in for abandoned sessions (e.g. user closed their tab). If no heartbeat is received for 24 hours, the cleanup thread reaps it.
    • If there are no lingering sessions, the cleanup thread simply wakes every 15 min, finds nothing, and goes back to sleep — zero overhead.

    TL;DR: sessions stay alive as long as they are in use. Abandoned sessions get 24 hours before automatic termination.

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

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions