hussein-awala commented on issue #56372: URL: https://github.com/apache/airflow/issues/56372#issuecomment-3368549284
I confirm there isn’t a bug here. The async method `run_trigger` is executed within an asyncio task, and the `cleanup` method runs in the `finally` block of that same task. In fact, the method `cleanup` executes in the main event loop (not a new one). Whether it’s called from the same asyncio task as `run_trigger` or from a new task, it still runs in the main event loop. This doc was introduced in [apache/airflow#30152](https://github.com/apache/airflow/pull/30152), which replaced the synchronous method with an asynchronous one. The goal of that doc was saying that the method runs asynchronously within the event loop. To be honest, I’m not entirely sure how this might impact your cleanup logic. -- 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]
