phanikumv commented on PR #30248: URL: https://github.com/apache/airflow/pull/30248#issuecomment-1486743267
> @phanikumv Would you mind elaborating on how this fixes the error you noticed? It's not entirely obvious to me. It's similar to the issue mentioned here https://github.com/odrling/peony-twitter/issues/41 , the client session if initialized in context manager doesnt work as expected as the asyncio session object is getting closed before the task gets completed. The context manager exit is called before code in the body. When I move the client creation outside context manager - it works flawlessly. PFB a screenshot of successful task runs after this change <img width="1705" alt="image" src="https://user-images.githubusercontent.com/94376113/228229652-93a4d0a6-ef44-4584-9da2-1f6f56ee359b.png"> -- 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]
