Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gunicorn invocation #3558

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Fix gunicorn invocation #3558

merged 1 commit into from
Oct 25, 2024

Conversation

otbutz
Copy link
Contributor

@otbutz otbutz commented Oct 9, 2024

This gets rid of the --factory warning. Source: https://stackoverflow.com/a/25319752

Before:

[2024-09-27 08:03:30 +0200] [7] [INFO] Starting gunicorn 23.0.0
[2024-09-27 08:03:30 +0200] [7] [INFO] Listening at: unix:/run/nominatim.sock (7)
[2024-09-27 08:03:30 +0200] [7] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2024-09-27 08:03:30 +0200] [41] [INFO] Booting worker with pid: 41
[2024-09-27 08:03:30 +0200] [42] [INFO] Booting worker with pid: 42
[2024-09-27 08:03:30 +0200] [43] [INFO] Booting worker with pid: 43
[2024-09-27 08:03:30 +0200] [44] [INFO] Booting worker with pid: 44
[2024-09-27 08:03:30 +0200] [44] [WARNING] ASGI app factory detected. Using it, but please consider setting the --factory flag explicitly.
[2024-09-27 08:03:30 +0200] [41] [WARNING] ASGI app factory detected. Using it, but please consider setting the --factory flag explicitly.
[2024-09-27 08:03:30 +0200] [44] [INFO] Started server process [44]
[2024-09-27 08:03:30 +0200] [44] [INFO] Waiting for application startup.
[2024-09-27 08:03:30 +0200] [41] [INFO] Started server process [41]
[2024-09-27 08:03:30 +0200] [41] [INFO] Waiting for application startup.
[2024-09-27 08:03:30 +0200] [42] [WARNING] ASGI app factory detected. Using it, but please consider setting the --factory flag explicitly.
[2024-09-27 08:03:30 +0200] [44] [INFO] Application startup complete.
[2024-09-27 08:03:30 +0200] [41] [INFO] Application startup complete.
[2024-09-27 08:03:30 +0200] [42] [INFO] Started server process [42]
[2024-09-27 08:03:30 +0200] [42] [INFO] Waiting for application startup.
[2024-09-27 08:03:30 +0200] [42] [INFO] Application startup complete.
[2024-09-27 08:03:30 +0200] [43] [WARNING] ASGI app factory detected. Using it, but please consider setting the --factory flag explicitly.
[2024-09-27 08:03:30 +0200] [43] [INFO] Started server process [43]
[2024-09-27 08:03:30 +0200] [43] [INFO] Waiting for application startup.
[2024-09-27 08:03:30 +0200] [43] [INFO] Application startup complete.

After:

[2024-10-09 10:04:45 +0200] [7] [INFO] Starting gunicorn 23.0.0
[2024-10-09 10:04:45 +0200] [7] [INFO] Listening at: unix:/run/nominatim.sock (7)
[2024-10-09 10:04:45 +0200] [7] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2024-10-09 10:04:45 +0200] [41] [INFO] Booting worker with pid: 41
[2024-10-09 10:04:45 +0200] [42] [INFO] Booting worker with pid: 42
[2024-10-09 10:04:45 +0200] [43] [INFO] Booting worker with pid: 43
[2024-10-09 10:04:45 +0200] [44] [INFO] Booting worker with pid: 44
[2024-10-09 10:04:45 +0200] [41] [INFO] Started server process [41]
[2024-10-09 10:04:45 +0200] [41] [INFO] Waiting for application startup.
[2024-10-09 10:04:45 +0200] [41] [INFO] Application startup complete.
[2024-10-09 10:04:45 +0200] [42] [INFO] Started server process [42]
[2024-10-09 10:04:45 +0200] [42] [INFO] Waiting for application startup.
[2024-10-09 10:04:45 +0200] [42] [INFO] Application startup complete.
[2024-10-09 10:04:45 +0200] [43] [INFO] Started server process [43]
[2024-10-09 10:04:45 +0200] [43] [INFO] Waiting for application startup.
[2024-10-09 10:04:45 +0200] [43] [INFO] Application startup complete.
[2024-10-09 10:04:45 +0200] [44] [INFO] Started server process [44]
[2024-10-09 10:04:45 +0200] [44] [INFO] Waiting for application startup.
[2024-10-09 10:04:45 +0200] [44] [INFO] Application startup complete.

@otbutz
Copy link
Contributor Author

otbutz commented Oct 16, 2024

@lonvia WDYT?

@lonvia lonvia merged commit ea98317 into osm-search:master Oct 25, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants