True when the client's session doesn't match or the hash changed.
(client_session_id: str | None)
| 68 | _session_id: str = _get_or_create_session_id() |
| 69 | |
| 70 | def _is_session_stale(client_session_id: str | None) -> bool: |
| 71 | """True when the client's session doesn't match or the hash changed.""" |
| 72 | if client_session_id != _session_id: |
| 73 | return True |
| 74 | # pylint: disable=protected-access |
| 75 | reload_hash = app._hot_reload.hash |
| 76 | if reload_hash is None: |
| 77 | return False |
| 78 | return reload_hash != _session_id |
| 79 | |
| 80 | # -- Streamable HTTP endpoint -------------------------------------------- |
| 81 |
no outgoing calls
no test coverage detected
searching dependent graphs…