Clear all sessions (for testing).
(self)
| 259 | stash.put("counters", "requests", current + 1) |
| 260 | |
| 261 | def clear_all(self): |
| 262 | """Clear all sessions (for testing).""" |
| 263 | stash.clear("sessions") |
| 264 | stash.put("counters", "requests", 0) |
| 265 | return {"status": "cleared"} |
| 266 | |
| 267 | def close(self): |
| 268 | print(f"[SessionApp] Shutting down worker {self.worker_pid}") |