Cloud & Infrastructure
Bug Report
ECS scale-in killed SQS workers mid-job and jobs ran twice: task scale-in protection
Our ECS Fargate workers scaled on SQS queue depth. After each burst, scale-in stopped tasks in the middle of 10-minute PDF jobs; messages reappeared and the jobs ran again, sending customers duplicate documents. How we fixed it with task scale-in protection, SIGTERM handling and a visibility timeout that fits the work.