KamoCRM

Clean up stale port-forward so cancelled translate job doesn't block next run

Fixkamo-internal
Shipped
28 ஏப்ரல், 2026 அன்று 9:37 PM UTC
Author
kamo
Commit
c19a263

Bash doesn't forward signals to backgrounded processes, so kubectl port-forward outlived cancelled workflow runs and held port 18080, blocking every subsequent translate_and_rebuild job. Fix: kill any existing port-forward on 18080 before binding (pkill + fuser/lsof fallback), then trap EXIT/TERM/INT/HUP to guarantee the background PF_PID is killed no matter how the step ends.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing