You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "ws752499660 (via GitHub)" <gi...@apache.org> on 2025/04/03 03:45:37 UTC
[I] [Feature][Task - kill task] Support user to config kill signal type of killing process/task [dolphinscheduler]
ws752499660 opened a new issue, #17106:
URL: https://github.com/apache/dolphinscheduler/issues/17106
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
I noticed that if user try to kill the task/process, for example, a Java task, dophin scheduler will send "kill -9" which is "SIGKILL" signal to java worker process.
Would you please make the kill signal be configable? Becasue in some situation, we want worker process to send "I am killed" message to specific observer application or do something else to clean resource when user try to kill task/process via dophin scheduler. And if the worker process is killed by ""SIGKILL" signal, there is no chance for "JVM runtime hook" to do something when the process needed to exit.
Thererfore, would you please make the kill signal be configable? Thanks for your help.
### Use case
User can be config the kill signal type of specific work process/task.
### Related issues
_No response_
### Are you willing to submit a 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: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature][Task - kill task] Support user to config kill signal type of killing process/task [dolphinscheduler]
Posted by "DhiyaneshwaranR (via GitHub)" <gi...@apache.org>.
DhiyaneshwaranR commented on issue #17106:
URL: https://github.com/apache/dolphinscheduler/issues/17106#issuecomment-2816885850
Hi @ws752499660
Thanks for raising this!
Just to clarify — starting from DolphinScheduler v3.3.0-alpha, the task kill logic has already been improved as part of [PR #17005](https://github.com/apache/dolphinscheduler/pull/17005). It now follows a graceful shutdown sequence:
`SIGINT → SIGTERM → SIGKILL`
So:
• If a task supports graceful termination (e.g., Java with shutdown hooks), it will now handle that properly via SIGINT.
• SIGKILL is only used as a last resort if the earlier signals fail.
At the moment, configuring or customizing the kill signal (globally or per-task) is not available — it follows the fixed order above.
@SbloodyS would it still make sense to work on this as a configurable feature, or should we consider this already resolved since the graceful signal flow is now in place?
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature][Task - kill task] Support user to config kill signal type of killing process/task [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #17106:
URL: https://github.com/apache/dolphinscheduler/issues/17106#issuecomment-2777452528
> Hi [@SbloodyS](https://github.com/SbloodyS) i am willing to take this feature
I've assigned to you. Looking forward to your contribution.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature][Task - kill task] Support user to config kill signal type of killing process/task [dolphinscheduler]
Posted by "DhiyaneshwaranR (via GitHub)" <gi...@apache.org>.
DhiyaneshwaranR commented on issue #17106:
URL: https://github.com/apache/dolphinscheduler/issues/17106#issuecomment-2774861628
Hi @SbloodyS i am willing to take this feature
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org