It looks like your task either returns a SQL alchemy connection or you use it in some other way outside of your task. If you move this call into the specific task that needs this database connection, this should fix it.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.