a819721810 opened a new issue, #17753: URL: https://github.com/apache/dolphinscheduler/issues/17753
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened Sending SIGINT to process group: 2737277 2737283, command: sudo -u dolphinscheduler -i kill -s SIGINT 2737277 2737283 2025-11-28 13:54:44.630 ERROR - Error sending SIGINT to process: 2737277 2737283 org.apache.dolphinscheduler.common.shell.AbstractShell$ExitCodeException: -sh: line 1: kill: SIGINT: invalid signal specification at org.apache.dolphinscheduler.common.shell.AbstractShell.runCommand(AbstractShell.java:205) at org.apache.dolphinscheduler.common.shell.AbstractShell.run(AbstractShell.java:118) at org.apache.dolphinscheduler.common.shell.ShellExecutor.execute(ShellExecutor.java:125) at org.apache.dolphinscheduler.common.shell.ShellExecutor.execCommand(ShellExecutor.java:103) at org.apache.dolphinscheduler.common.shell.ShellExecutor.execCommand(ShellExecutor.java:86) at org.apache.dolphinscheduler.common.utils.OSUtils.exeShell(OSUtils.java:342) at org.apache.dolphinscheduler.common.utils.OSUtils.exeCmd(OSUtils.java:331) at org.apache.dolphinscheduler.plugin.task.api.utils.ProcessUtils.sendKillSignal(ProcessUtils.java:176) at org.apache.dolphinscheduler.plugin.task.api.utils.ProcessUtils.kill(ProcessUtils.java:120) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.cancelApplication(AbstractCommandExecutor.java:217) at org.apache.dolphinscheduler.plugin.task.shell.ShellTask.cancel(ShellTask.java:106) at org.apache.dolphinscheduler.server.worker.executor.PhysicalTaskExecutor.kill(PhysicalTaskExecutor.java:105) at org.apache.dolphinscheduler.task.executor.listener.TaskExecutorLifecycleEventListener.onTaskExecutorKillLifecycleEvent(TaskExecutorLifecycleEventListener.java:88) at org.apache.dolphinscheduler.task.executor.eventbus.TaskExecutorEventBusCoordinator.doFireTaskExecutorEventBus(TaskExecutorEventBusCoordinator.java:167) at org.apache.dolphinscheduler.task.executor.eventbus.TaskExecutorEventBusCoordinator.lambda$fireTaskExecutorEventBus$1(TaskExecutorEventBusCoordinator.java:124) at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:714) at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1742) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) <img width="3200" height="1420" alt="Image" src="https://github.com/user-attachments/assets/9153045e-3c5e-4ebf-80f5-026d99d735cc" /> ### What you expected to happen ProcessUtil.java=>sendKillSignal=> String killCmd = String.format("kill -s %s %s", signal, pids); cannot always kill <img width="1386" height="812" alt="Image" src="https://github.com/user-attachments/assets/0719fff9-7228-434d-bc0f-6ae3049c0ac9" /> ### How to reproduce kill workflow ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
