Solución: Cuando el titiritero inicializa el lanzamiento, debe agregar los siguientes parámetros [handleSIGINT = False, handleSIGTERM = False, handleSIGHUP = False] para que el modo de ejecución y depuración de flask se inicie y se ejecute normalmente.
Documento oficial titiritero: https://miyakogi.github.io/pyppeteer/reference.html#launcher
_browser = await launch(
{
"headless": _headless,
"defaultViewport": _defaultViewport,
"args": _args,
"handleSIGINT": False,
"handleSIGTERM": False,
"handleSIGHUP": False
})
La fuente de ideas para la solución:
1 、https://xbuba.com/questions/53679905