Idle timeout vs Session

An idle timeout stops a sandbox after a set time with no activity. A session is one continuous run, from start to stop. A session limit stops a sandbox after a fixed time, even while it is active.

Updated

Idle timeout

How long a sandbox can sit unused before the provider stops it.

Used by
Not listed

Session

One continuous run of a sandbox, from start to stop.

Used by
Not listed

How they differ

4 fields, side by side

Idle timeout
Session
What it measures
Idle timeout: Time with no activity
Session: Time from start to stop
Timer starts at
Idle timeout: The last activity
Session: The start of the run
Activity extends the limit
Idle timeout: Yes
Session: No
Ends the sandbox when
Idle timeout: The idle time passes
Session: The maximum length passes, if the provider sets one

When the difference matters

An idle timeout saves money on a sandbox that sits unused. A session limit ends the run even when the code is busy. A short idle timeout can stop a sandbox between two agent steps, and the next request then waits for a start.

Which one to look for

Check the idle timeout value and whether you can change it. Check whether the provider sets a maximum session length. Check what survives a stop, such as files or memory.

Providers using each

List price per vCPU-hour

Idle timeout

0
No provider in the directory names Idle timeout yet.

Session

0
No provider in the directory names Session yet.

Related terms

All glossary terms

Related