()
| 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 |
nothing calls this directly
no test coverage detected