Skip to content

Commit b87a944

Browse files
committed
Reduce ttl in examples
1 parent 2765f5a commit b87a944

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

doc/modules/ROOT/pages/tutorials/gds-sessions-self-managed.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ gds = sessions.get_or_create(
120120
session_name="people-and-fruits-sm",
121121
memory=memory,
122122
db_connection=db_connection,
123-
ttl=timedelta(hours=5),
123+
ttl=timedelta(hours=1),
124124
cloud_location=cloud_location,
125125
)
126126
----

doc/modules/ROOT/pages/tutorials/gds-sessions.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Finally, we need to give our session a name. We will call ours
7777
with the same session name and configuration.
7878

7979
We will also set a time-to-live (TTL) for the session. This ensures that
80-
our session is automatically deleted after being unused for 5 hours.
80+
our session is automatically deleted after being unused for 30 minutes.
8181
This is a good practice to avoid incurring costs should we forget to
8282
delete the session ourselves.
8383

@@ -113,7 +113,7 @@ gds = sessions.get_or_create(
113113
session_name="people-and-fruits",
114114
memory=memory,
115115
db_connection=db_connection,
116-
ttl=timedelta(hours=5),
116+
ttl=timedelta(minutes=5),
117117
)
118118
----
119119

examples/gds-sessions-self-managed.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"It is possible to reconnect to an existing session by calling `get_or_create` with the same session name and configuration.\n",
111111
"\n",
112112
"We will also set a time-to-live (TTL) for the session. \n",
113-
"This ensures that our session is automatically deleted after being unused for 5 hours.\n",
113+
"This ensures that our session is automatically deleted after being unused for 30 minutes.\n",
114114
"This is a good practice to avoid incurring costs should we forget to delete the session ourselves."
115115
]
116116
},
@@ -162,7 +162,7 @@
162162
" session_name=\"people-and-fruits-sm\",\n",
163163
" memory=memory,\n",
164164
" db_connection=db_connection,\n",
165-
" ttl=timedelta(hours=5),\n",
165+
" ttl=timedelta(minutes=30),\n",
166166
" cloud_location=cloud_location,\n",
167167
")"
168168
]

examples/gds-sessions.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"It is possible to reconnect to an existing session by calling `get_or_create` with the same session name and configuration. \n",
111111
"\n",
112112
"We will also set a time-to-live (TTL) for the session. \n",
113-
"This ensures that our session is automatically deleted after being unused for 5 hours.\n",
113+
"This ensures that our session is automatically deleted after being unused for 30 minutes.\n",
114114
"This is a good practice to avoid incurring costs should we forget to delete the session ourselves."
115115
]
116116
},
@@ -154,7 +154,7 @@
154154
" session_name=\"people-and-fruits\",\n",
155155
" memory=memory,\n",
156156
" db_connection=db_connection,\n",
157-
" ttl=timedelta(hours=5),\n",
157+
" ttl=timedelta(minutes=30),\n",
158158
")"
159159
]
160160
},

0 commit comments

Comments
 (0)