diff --git a/actioner/main.py b/actioner/main.py index d2343b8..b15299c 100644 --- a/actioner/main.py +++ b/actioner/main.py @@ -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__': diff --git a/actioner/web/__init__.py b/actioner/web/__init__.py index e2b4215..d23f5f2 100644 --- a/actioner/web/__init__.py +++ b/actioner/web/__init__.py @@ -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