Tim Wisniewski
03/09/2023, 4:28 PMNate
03/09/2023, 5:19 PMprefect-sqlalchemy as a way of retrieving a db engine seems totally valid to me
I can't say I know what's happening with your session commit though. As a sanity check, does it do the same thing if you remove the @task decorator for get_job_definitions and renew_token ?Tim Wisniewski
03/09/2023, 7:34 PMTim Wisniewski
03/10/2023, 9:23 AMsession.add() that object, but I also had to configure my session to expire_on_commit=False. Starting to wonder if, instead, I should create the session in my @flow and pass it to each database @task 🤔