Skip to content

feat(devops): set docker hard stop timeout to 12s - #80

Merged
MariaEduardaBatt merged 1 commit into
devfrom
feat/35-docker-hard-stop-timeout
Jun 15, 2026
Merged

MariaEduardaBatt merged 1 commit into
devfrom
feat/35-docker-hard-stop-timeout

Conversation

@MariaEduardaBatt

Copy link
Copy Markdown
Owner

O que muda?

Adiciona \stop_timeout_s=12\ ao dataclass \Settings, configura o Docker --stop-timeout=12\ na criação do container sandbox (camada 3 do PRD seção 11.3), e altera \container.stop(timeout=10)\ → \container.stop(timeout=12).

Por quê?

O sandbox precisa de uma última rede de segurança caso o timeout suave falhe.

Closes #35

Como testar?

  1. \cd backend && pytest tests/test_execution_strategy.py -v\
  2. Verificar que \stop_timeout=12\ é passado ao \create_container\
  3. Opcional: \docker run --stop-timeout 12 alpine sleep 30\ e conferir \docker inspect --format '{{.Config.StopTimeout}}'\

Checklist

  • Testes passando localmente
  • Não introduzi breaking changes

@MariaEduardaBatt
MariaEduardaBatt merged commit be53fe5 into dev Jun 15, 2026
@MariaEduardaBatt
MariaEduardaBatt deleted the feat/35-docker-hard-stop-timeout branch June 15, 2026 20:09
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.

feat(devops): set docker hard stop timeout

1 participant