vincbeck commented on PR #58524:
URL: https://github.com/apache/airflow/pull/58524#issuecomment-3583366588

   > Either way, do you see anything in your logs about "Error refreshing Task 
JWT"?
   
   Nop, I only see `jwt.exceptions.ExpiredSignatureError: Signature has 
expired` and the task fails.
   
   Given the significant written by Pierre:
   ```
   FastAPI dependency is updated and lower bound set to ``0.121.0``
   
   Airflow now requires FastAPI ``>=0.121.0`` and removes the previous upper
   constraint. This aligns with FastAPI's new dependency lifecycle scopes
   (e.g. request/function) that change how dependencies with ``yield`` are
   exited.
   See `FastAPI PR #14262 <https://github.com/fastapi/fastapi/pull/14262>`_.
   ```
   
   I would say it is probably due to the fastapi upgrade because I can see in 
`JWTReissuer` that we do:
   ```
           try:
               yield
           finally:
               ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to