Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
cdfd70f0
Unverified
Commit
cdfd70f0
authored
Oct 08, 2025
by
Tzu-Ling Kan
Committed by
GitHub
Oct 08, 2025
Browse files
feat: changing SIGKILL to SIGINT for graceful shutdown (#3513)
Signed-off-by:
tzulingk@nvidia.com
<
tzulingk@nvidia.com
>
parent
9b5bab72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
tests/utils/managed_deployment.py
tests/utils/managed_deployment.py
+9
-0
No files found.
tests/utils/managed_deployment.py
View file @
cdfd70f0
...
@@ -336,6 +336,15 @@ class PodProcess:
...
@@ -336,6 +336,15 @@ class PodProcess:
signal
=
"SIGINT"
signal
=
"SIGINT"
else
:
else
:
signal
=
"SIGKILL"
signal
=
"SIGKILL"
# Python processes need signal handlers for graceful shutdown
if
self
.
pid
==
1
and
signal
==
"SIGKILL"
and
"python"
in
self
.
command
.
lower
():
logging
.
info
(
f
"PID 1 is a Python process (
{
self
.
command
[:
50
]
}
...), "
"changing SIGKILL to SIGINT for graceful shutdown"
)
signal
=
"SIGINT"
logging
.
info
(
"Killing PID %s with %s"
,
self
.
pid
,
signal
)
return
self
.
_pod
.
exec
([
"kill"
,
f
"-
{
signal
}
"
,
str
(
self
.
pid
)])
return
self
.
_pod
.
exec
([
"kill"
,
f
"-
{
signal
}
"
,
str
(
self
.
pid
)])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment