Skip to content

Commit c03e3d4

Browse files
authored
Increase kernel-images-api stop time (#295)
align to graceful shutdown upperbound note: less than optimal to hardcode but fine for now <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Supervisor-only timing tweak for container stop behavior; no application logic or security paths change. > > **Overview** > Supervisor now waits **25 seconds** (`stopwaitsecs=25`) before force-killing `kernel-images-api` on stop, instead of the default ~10s. The change is applied identically in **chromium-headful** and **chromium-headless** `kernel-images-api.conf`, with a comment that the value covers graceful shutdown plus a small buffer (aligned with the API’s shutdown upper bound). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 0f4f79e. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 7bbfd20 commit c03e3d4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

images/chromium-headful/supervisor/services/kernel-images-api.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ command=/bin/bash -lc 'mkdir -p "${KERNEL_IMAGES_API_OUTPUT_DIR:-/recordings}" &
44
autostart=false
55
autorestart=true
66
startsecs=0
7+
; graceful shutdown + buffer
8+
stopwaitsecs=25
79
stdout_logfile=/var/log/supervisord/kernel-images-api
810
redirect_stderr=true

images/chromium-headless/image/supervisor/services/kernel-images-api.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ command=/bin/bash -lc 'mkdir -p "${KERNEL_IMAGES_API_OUTPUT_DIR:-/recordings}" &
44
autostart=false
55
autorestart=true
66
startsecs=0
7+
; graceful shutdown + buffer
8+
stopwaitsecs=25
79
stdout_logfile=/var/log/supervisord/kernel-images-api
810
redirect_stderr=true

0 commit comments

Comments
 (0)