# Sessions go idle after their turn when workers restart

> A session whose turn finished while rolling deploys restarted its workers no longer stays active, and sessions already stuck that way are resumed and idled.

Source: <https://everruns.com/docs/changelog/2026-11-01-sessions-idle-after-worker-restarts/>

Date: 2026-11-01
Products: Platform, Cloud
Category: Fix
Available: In 0.51.0
Pull request: everruns/everruns#5132

A turn that finished across several worker restarts could leave its session `active` for days: the turn’s answer was in the log, but `session.idled` never followed, so the session showed as running and nothing ran it again. Webhook and trigger sessions hit this during rolling deploys.

The worker that takes over a finished turn now idles its session even when the turn already used up its restarts. A server sweep also resumes any session left `active` with no worker on it, so sessions already stuck this way settle on their own within minutes of the update:

```bash
everruns sessions get session_01h9 | jq '{status, activity, last_turn_status}'
# before: { "status": "active", "activity": "running", "last_turn_status": "completed" }
# after:  { "status": "idle", "activity": "completed", "last_turn_status": "completed" }
```

See [Events](https://everruns.com/docs/features/events/) for `session.idled` and the other session lifecycle events.