Skip to content

Commit c6322b6

Browse files
authored
Remove unused code from ci-image-commands (apache#51643)
1 parent 517cde5 commit c6322b6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

dev/breeze/src/airflow_breeze/commands/ci_image_commands.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import signal
2222
import subprocess
2323
import sys
24-
import time
2524
from copy import deepcopy
2625
from pathlib import Path
2726
from typing import TYPE_CHECKING
@@ -189,19 +188,6 @@ def prepare_for_building_ci_image(params: BuildCiParams):
189188
make_sure_builder_configured(params=params)
190189

191190

192-
def build_timout_handler(build_process_group_id: int, signum, frame):
193-
# Kill the forked process group - it will kill the build even if it is running in parallel
194-
# with multiple processes and docker build sessions
195-
os.killpg(build_process_group_id, signal.SIGTERM)
196-
os.waitpid(build_process_group_id, 0)
197-
# give the output a little time to flush so that the helpful error message is not hidden
198-
time.sleep(5)
199-
if os.environ.get("GITHUB_ACTIONS", "false") != "true":
200-
get_console().print("::endgroup::")
201-
get_console().print()
202-
sys.exit(1)
203-
204-
205191
def kill_process_group(build_process_group_id: int):
206192
with contextlib.suppress(OSError):
207193
os.killpg(build_process_group_id, signal.SIGTERM)

0 commit comments

Comments
 (0)