1
0
mirror of https://github.com/quay/quay.git synced 2025-11-07 15:46:28 +03:00

Remove app from GunicornWorker (#1394)

Quay uses GunicornWorker to run background workers in the development
environment. It is not expected to serve any HTTP server.
This commit is contained in:
Oleg Bulatov
2022-06-17 13:34:05 +02:00
committed by GitHub
parent a0df895005
commit af1aacea08
21 changed files with 53 additions and 55 deletions

View File

@@ -38,7 +38,7 @@ class QueueCleanupWorker(Worker):
return
def create_gunicorn_worker():
def create_gunicorn_worker() -> GunicornWorker:
"""
follows the gunicorn application factory pattern, enabling
a quay worker to run as a gunicorn worker thread.
@@ -47,7 +47,7 @@ def create_gunicorn_worker():
utilizing this method will enforce a 1:1 quay worker to gunicorn worker ratio.
"""
worker = GunicornWorker(__name__, app, QueueCleanupWorker(), True)
worker = GunicornWorker(__name__, QueueCleanupWorker(), True)
return worker