The sql_alchemy_conn_cmd will only get called once at process (scheduler, 
webserver) start up, so that wouldn't work for IAM creds, sadly.

To support this probably needs some deeper changes in Airflow - but I don't 
have an immediate idea what they might need to be. It would be nice though

-ash

> On 21 Aug 2019, at 18:03, Sourabh Bajaj <sour...@neeva.co> wrote:
> 
> Hi,
> 
> I'm trying to use IAM created auth tokens for connecting to the airflow
> database. One question I had was: How often does sql_alchemy_conn_cmd get
> called? so want to figure out the lifetime of a connection.
> 
> Best,
> Sourabh

Reply via email to