Skip to content

[Question] [worker] workflow killed not success #17753

@a819721810

Description

@a819721810

Search before asking

  • I had searched in the issues 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)
Image

What you expected to happen

ProcessUtil.java=>sendKillSignal=> String killCmd = String.format("kill -s %s %s", signal, pids);
cannot always kill

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions