1
0
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:
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

@@ -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,
)