shenshichao163-oss commented on issue #16789: URL: https://github.com/apache/dolphinscheduler/issues/16789#issuecomment-5301521419
I have submitted PR #18554 to fix this issue. ## Root Cause When stopping a Flink task from the page, DolphinScheduler uses the generic process kill logic (SIGINT/SIGTERM/SIGKILL), which does not properly cancel the Flink job. The `FlinkArgsUtils.buildCancelCommandLine()` method already exists in the codebase but was never called. ## Fix Override `cancelApplication()` in `FlinkTask` to: 1. First attempt graceful cancellation using `flink cancel <appId>` command 2. Fall back to process-level kill if the Flink cancel fails or times out Please review when you have time. Thanks! -- 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]
