mirror of
https://github.com/quay/quay.git
synced 2025-11-23 20:42:29 +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:
@@ -34,7 +34,7 @@ class ChunkCleanupWorker(QueueWorker):
|
||||
raise JobException()
|
||||
|
||||
|
||||
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.
|
||||
@@ -49,7 +49,6 @@ def create_gunicorn_worker():
|
||||
feature_flag = "SwiftStorage" in engines
|
||||
worker = GunicornWorker(
|
||||
__name__,
|
||||
app,
|
||||
ChunkCleanupWorker(chunk_cleanup_queue, poll_period_seconds=POLL_PERIOD_SECONDS),
|
||||
feature_flag,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user