ctp-slack-bot / temporary_health_check_server.py
LiKenun's picture
Temporary health check server process
5664427
raw
history blame
317 Bytes
from aiohttp import web
async def aliveness_handler(request):
return web.Response(text="Server is alive and kicking!")
app = web.Application()
app.router.add_get('/', aliveness_handler)
app.router.add_get('/health', aliveness_handler)
if __name__ == "__main__":
web.run_app(app, host='0.0.0.0', port=8080)