class_docstr: Exempt certain blueprints/paths from autogenerated sessions.
class_docstr_tok: ["Exempt","certain","blueprints\/paths","from","autogenerated","sessions","."]
docstr: Prevent creating session from REST API and health requests.
docstr_tok: ["Prevent","creating","session","from","REST","API","and","health","requests","."]
code: def save_session(self, *args, **kwargs):
      """Prevent creating session from REST API and health requests."""
      if request.blueprint == "/api/v1":
          return None
      if request.path == "/health":
          return None
      return super().save_session(*args, **kwargs)
  
file_path: airflow/airflow/www/session.py
imports: from __future__ import annotations
  from flask import request
  from flask.sessions import SecureCookieSessionInterface
  from flask_session.sessions import SqlAlchemySessionInterface
label_desc: Use image node_id 1 for calling the SessionExemptMixin obj's underlying member method code with example usage: obj.save_session() and returns: super, None, None