You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jyu00 noticed that when I updated the batch max TTL, I needed to also
update the session max TTL.
---------
Co-authored-by: Jessie Yu <[email protected]>
Copy file name to clipboardExpand all lines: docs/guides/run-jobs-session.mdx
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ with Session(backend=backend):
82
82
<spanid="specify-length"></span>
83
83
## Session length
84
84
85
-
The maximum session time to live (TTL) determines how long a session can run. You can set this value with the `max_time` parameter. This should exceed the longest job's execution time.
85
+
The session maximum time to live (TTL) determines how long a session can run. You can set this value with the `max_time` parameter. This should exceed the longest job's execution time.
86
86
87
87
This timer starts when the session starts. When the value is reached, the session is closed. Any jobs that are running will finish, but jobs still queued are failed.
88
88
@@ -97,30 +97,32 @@ with Session(backend=backend, max_time="25m"):
97
97
...
98
98
```
99
99
100
-
There is also an interactive time to live (interactive TTL) value that cannot be configured. If no session jobs are queued within that window, the session is temporarily deactivated.
100
+
There is also an interactive time to live (interactive TTL) value that cannot be configured (1 minute for all plans). If no session jobs are queued within that window, the session is temporarily deactivated.
101
101
102
102
Default values:
103
103
<LegacyContent>
104
-
| Instance type (Open or Premium Plan) | Interactive TTL |Maximum TTL |
105
-
| --- | --- | --- |
106
-
| Premium Plan |60 sec*|8 h*|
107
-
| Open Plan | sessions run in job mode | sessions run in job mode |
104
+
| Instance type (Open or Premium Plan) | Maximum TTL |
105
+
| --- | --- |
106
+
| Premium Plan | 8 h*|
107
+
| Open Plan | sessions run in job mode |
108
108
</LegacyContent>
109
109
<CloudContent>
110
-
| Instance type (Open or Premium Plan) | Interactive TTL | Maximum TTL |
111
-
| --- | --- | --- |
112
-
| Premium Plan | 60 sec*| 8 h*|
110
+
111
+
| Plan type | Default maximum TTL |
112
+
|----------------|---------------------|
113
+
| All paid plans | 8 hours |
114
+
| Open | 10 minutes |
113
115
</CloudContent>
114
116
*\* Certain Premium Plan instances might be configured to have a different value.*
115
117
116
-
To determine a session's max TTL or interactive TTL, follow the instructions in [Determine session details](#session-details) and look for the `max_time`or `interactive_timeout` value, respectively.
118
+
To determine a session's maximum TTL or interactive TTL, follow the instructions in [Determine session details](#session-details) and look for the `max_time`or `interactive_timeout` value, respectively.
117
119
118
120
<spanid="ends"></span>
119
121
## End a session
120
122
121
123
A session ends in the following circumstances:
122
124
123
-
* The maximum timeout (TTL) value is reached, resulting in the cancellation of all queued jobs.
125
+
* The maximum TTL value is reached, resulting in the cancellation of all queued jobs.
124
126
* The session is manually canceled, resulting in the cancellation of all queued jobs.
125
127
* The session is manually closed. The session stops accepting new jobs but continues to run queued jobs with priority.
126
128
* If you use Session as a context manager, that is, `with Session()`, the session is automatically closed when the context ends (the same behavior as using `session.close()`).
0 commit comments