I am new to gunicorn multiprocessing (by calling gunicorn –worker=X). I am using it with Flask to provide the WSGI implementation for our productive frontend. To use multiprocessing, we pass the above mentioned parameter to unicorn. Our Flask application also uses APScheduler (via Flask-APScheduler) to run a cron task every Y hours. This task searches for new database entries to
Tag: gunicorn
Gunicorn won’t start with can’t connect to (‘0.0.0.0’,443)
I am getting the following error from gunicorn when I try to bind on port 443: Answer Ports < 1024 are privileged ports. Give access to process that is binding on that port:
Django – Loggers are overwriting the previous log file along with the new one
I am using Django logger for logging along with gunicorn workers. Currently, I am testing with 3 workers and I am using the TimedRotatingFileHandler. I configured when = m and interval = 1, I tried sending some 1000 requests and it is writing in the new file and overwriting the old file as well. Here is my config from settings.py
Python + FastAPI + OracleCloud: How to expose my python fastapi endpoint on Oracle Cloud to Internet
I have a Python + FastAPI restful API project running the free tier of Oracle Cloud VM instance. I use Gunicorn to serve the api and also installed Nginx just in case it’s needed. I have tested my running project with curl http://localhost:8000 and I can see my API response. Now my question is : how can I expose this
What is the best way to run a web app using gunicorn at certain hours of the day?
I have a little dashboard that runs with python – dash and I’ve already deployed it successfully in production using GUNICORN. However, I only want to run it on productive hours (say 8:00 to 20:00). What is the best way to do it? Using crontab to run the GUNICORN launching line? Using crontab to kill the GUNICORN process at the
Python Uvicorn – obtain SSL certificate information
I have a gunicorn + uvicorn + fastApi stack. (Basically, I am using https://hub.docker.com/r/tiangolo/uvicorn-gunicorn-fastapi docker image). I’ve already implemented SSL based authentication by providing appropriate gunicorn configuration options: certfile, keyfile, ca_certs, cert_reqs. And it works fine: user have to provide a client SSL certificate in order to be able to make an API calls. What I need to do now
How to debug django staticfiles served with whitenoise, gunicorn, and heroku?
I’ve got a project that runs on Heroku from a Dockerfile and heroku.yml. The site generally works, but I am having trouble with static files. collectstatic is run when building the pack. If I set DEBUG to True, it finds the files. I’m trying to use whitenoise but not sure why it’s not working. It sounds so simple so I’m
Why are my gunicorn Python/Flask workers exiting from signal term?
I have a Python/Flask web application that I am deploying via Gunicorn in a docker image on Amazon ECS. Everything is going fine, and then suddenly, including the last successful request, I see this in the logs: [2017-03-29 21:49:42 +0000] [14] [DEBUG] GET /heatmap_column/e4c53623-2758-4863-af06-91bd002e0107/ADA [2017-03-29 21:49:43 +0000] [1] [INFO] Handling signal: term [2017-03-29 21:49:43 +0000] [14] [INFO] Worker exiting (pid:
Does Gunicorn run on Windows
I have looked around for a while, and I was surprised not finding any information whether Gunicorn runs on Windows or not. Does anyone know if that is the case, and if so, where can I find some documentation about it? Answer Technically this is not an answer. But practically the answer I was looking for is how to run