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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user