Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

229
Visualizações
How to pass CI/CD pipeline stage which starts an API

I'm trying to start an API in my last stage of a git CI/CD pipeline. That's done in Python through FastAPI/uvicorn, which runs inside a Docker container.

app = FastAPI()
if __name__ == '__main__':
    uvicorn.run(app, port=777, host="0.0.0.0")

Everything works fine, however, there is one problem. Since the API starts and then keeps running (as it should), the CI/CD stage doesn't pass once the API has started, but it just keeps running also. Therefore the whole pipeline can never reach the passed status.

How would it be possible to mark a CI/CD stage as passed, even though the underlying Docker container (and the Python script inside it) has not terminated, because it needs to keep the API running?

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda