From 1920e9a886147973703f6421db45f2533e791d65 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Fri, 29 Dec 2023 23:42:02 +0100 Subject: [PATCH] feat: move gunicorn worker config in file (#64) --- templates/systemd/libretime-api.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/systemd/libretime-api.service.j2 b/templates/systemd/libretime-api.service.j2 index 97f5968..d77812a 100644 --- a/templates/systemd/libretime-api.service.j2 +++ b/templates/systemd/libretime-api.service.j2 @@ -26,7 +26,7 @@ Type=notify KillMode=mixed ExecStart={{ libretime_venv_dir }}/bin/gunicorn \ --workers 4 \ - --worker-class uvicorn.workers.UvicornWorker \ + --worker-class libretime_api.gunicorn.Worker \ --log-file - \ --bind unix:/run/libretime-api.sock \ libretime_api.asgi