Skip to content

Commit

Permalink
fix: Get the pid of xcom command dynamically (#45053)
Browse files Browse the repository at this point in the history
* fix: Get the pid of xcom command dynamically

* fix signal number
  • Loading branch information
Laerte authored Dec 18, 2024
1 parent 2f92f82 commit 3c11168
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def extract_xcom_kill(self, pod: V1Pod):
_preload_content=False,
)
) as resp:
self._exec_pod_command(resp, "kill -2 1")
self._exec_pod_command(resp, "kill -2 $(pgrep -u $(whoami) -f trap)")

def _exec_pod_command(self, resp, command: str) -> str | None:
res = ""
Expand Down

0 comments on commit 3c11168

Please sign in to comment.