MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / autovacuum_sessions

Method autovacuum_sessions

web/pgadmin/misc/__init__.py:217–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215 self.submodules.append(module)
216
217 def autovacuum_sessions():
218 try:
219 with app.app_context():
220 cleanup_session_files()
221 finally:
222 # repeat every five minutes until exit
223 # https://github.com/python/cpython/issues/98230
224 t = threading.Timer(5 * 60, autovacuum_sessions)
225 t.daemon = True
226 t.start()
227
228 app.register_before_app_start(autovacuum_sessions)
229

Callers

nothing calls this directly

Calls 2

cleanup_session_filesFunction · 0.90
startMethod · 0.80

Tested by

no test coverage detected