jason810496 commented on issue #74677:
URL: https://github.com/apache/airflow/issues/74677#issuecomment-7207906061

   Hi @seanghaeli,
   
   Would it make sense to refactor the public interface of 
`BaseDeadlineReference` so it no longer takes the DB session as an argument? As 
it stands, users can access the metadata DB session from within the scheduler, 
which is a high-risk operation.
   
   Instead, we could pass the necessary info/context into the method. Users 
could then implement their own business logic without ever touching the DB 
session directly.
   
   WDYT? Thanks!


-- 
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