Add healthcheck endpoint
This commit is contained in:
parent
be5d356059
commit
58b478c937
2 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,6 @@ def main():
|
|||
server = get_server()
|
||||
web_process = Process(target=run_web_app, args=(server,))
|
||||
web_process.start()
|
||||
web_process.join()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
from aiohttp import web
|
||||
|
||||
|
||||
async def healthcheck(request):
|
||||
return web.json_response({})
|
||||
|
||||
|
||||
def get_server():
|
||||
app = web.Application()
|
||||
app.router.add_get("/healthcheck", healthcheck)
|
||||
return app
|
||||
|
|
Reference in a new issue