mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
With an explicit zero minimum, drain stale REPLICA tasks whose fixed published ports conflict with a replacement. Wait for background Docker cleanup to confirm removal before placing the replacement, including port-owning security-group helpers. Keep task protection and failed-deployment guards, remove helpers outside the firewall monitor, and revoke task credentials even when cleanup fails. Closes #7523 Centralize fixed host-port selection in EcsContainerManager and use it from both container publishers and scheduler conflict detection. Preserve existing bridge, host, and awsvpc publication behavior. Validation: 179 focused ECS and firewall tests passed.