attilapiros commented on pull request #32169: URL: https://github.com/apache/spark/pull/32169#issuecomment-820111567
@mridulm you mean using the `TaskCompletionListener`, right? As I see the code of the `MonitorThread`: one of its responsibility to handle task interruption: https://github.com/apache/spark/blob/c4a5e2dfa38d754f92ea6f4b98f549b7d6108639/core/src/main/scala/org/apache/spark/api/python/PythonRunner.scala#L582-L584 The code goes on what to do when the task is interrupted and not completed. But task interruption is not a completion you can see when it flagged to be interrupted no listener informed: https://github.com/apache/spark/blob/c4a5e2dfa38d754f92ea6f4b98f549b7d6108639/core/src/main/scala/org/apache/spark/TaskContextImpl.scala#L149-L151 -- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
