Skip to content

Configure graceful worker shutdown for Fargate - #264

Merged
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/fargate-worker-soft-shutdown
Aug 13, 2026
Merged

Configure graceful worker shutdown for Fargate#264
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/fargate-worker-soft-shutdown

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • upgrade Celery to 5.5.3 and align Kombu/Billiard pins
  • enable a 90-second Celery soft shutdown, including idle workers
  • remap ECS SIGTERM to SIGQUIT while retaining the 120-second container stop timeout
  • add contract coverage for the application and ECS shutdown settings

Verification

  • uv run pytest apps/api/tests apps/worker/tests/contract -q (388 passed)
  • uv run pytest deploy/ecs/test_render_task_definitions.py -q (4 passed)
  • make lint
  • make typecheck
  • uv lock --check
  • git diff --check

Part of Ontos-AI/knowhere-api-infra#22 and Ontos-AI/knowhere-api-infra#19.

@suguanYang
suguanYang merged commit 6602abf into main Aug 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant