Skip to content

Commit f6e91b0

Browse files
beveradbclaude
andauthored
fix(infrastructure): Increase systemd startup timeout for wheel install (#226)
## Summary Fix encoding worker startup timeout issue discovered after #225 deployment. ## Problem The ExecStartPre script that installs the karaoke-gen wheel can take 2+ minutes on first boot. The default systemd timeout (90s) caused multiple retries before eventually succeeding. ## Solution Add `TimeoutStartSec=300` to the systemd service definition to allow up to 5 minutes for the startup script to complete. ## Test Plan - [ ] Merge triggers Packer image rebuild - [ ] New image has longer timeout configured - [ ] Next VM recreation starts without timeout retries 🤖 Generated with [Claude Code](https://claude.com/claude-code) @coderabbitai ignore Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4b58e9c commit f6e91b0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

infrastructure/packer/scripts/provision.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ ExecStartPre=/opt/encoding-worker/startup.sh
148148
ExecStart=/opt/encoding-worker/venv/bin/uvicorn backend.services.gce_encoding.main:app --host 0.0.0.0 --port 8080
149149
Restart=always
150150
RestartSec=10
151+
TimeoutStartSec=300
151152
Environment="GOOGLE_CLOUD_PROJECT=nomadkaraoke"
152153
EnvironmentFile=/opt/encoding-worker/env
153154

0 commit comments

Comments
 (0)