Re: [sqlalchemy] do_connect listener called couple of times

2022-03-22 Thread Srinu Chp
cparams password set it should pass new password for new request. Can you please suggest if I miss anything here? Regards, Pydi On Tuesday, March 22, 2022 at 9:33:57 AM UTC-7 Srinu Chp wrote: > Hello Simon, > > Thank you very much for detail information. > > Regards, > Pydi > >

Re: [sqlalchemy] do_connect listener called couple of times

2022-03-21 Thread Srinu Chp
handler inside receive_do_connect > is allowing it to stumble on. > > Simon > > On Mon, Mar 21, 2022 at 4:51 AM Srinu Chp wrote: > > > > Hello Team, > > > > I tried to create a standalone application POC for sqlalchemy to db > connection. Wh

[sqlalchemy] do_connect listener called couple of times

2022-03-20 Thread Srinu Chp
Hello Team, I tried to create a standalone application POC for sqlalchemy to db connection. When I registered do_connect event, I see event is triggered couple of times for one call: *sqlalchemy_connection.py* import os import cx_Oracle from sqlalchemy import create_engine from sqlalchemy

Re: [sqlalchemy] password rotation after engine created

2022-02-04 Thread Srinu Chp
ith the new password, use the hook > example at > https://docs.sqlalchemy.org/en/14/core/engines.html#fully-replacing-the-dbapi-connect-function > > > > > > On Fri, Feb 4, 2022, at 12:03 PM, Srinu Chp wrote: > > Hello Mike, > > Thank you very much for prompt r

Re: [sqlalchemy] password rotation after engine created

2022-02-04 Thread Srinu Chp
dynamic-authentication-tokens > > no need to connect() inside the event handler, just update the parameters > with the new password. > > On Fri, Feb 4, 2022, at 11:14 AM, Srinu Chp wrote: > > Hello Everyone, > > We have application, while start up we initialize prepare engi

[sqlalchemy] password rotation after engine created

2022-02-04 Thread Srinu Chp
Hello Everyone, We have application, while start up we initialize prepare engine args, configure orm. Once engine created we keep in session. Recently peer team introduced password rotation and for now as work around we are manually restarting the docker container to fetch latest password from