python-flask-template
python-flask-template copied to clipboard
HTTP and Flask-based OpenFaaS templates for Python 3
## My actions before raising this issue - [X] Followed the [troubleshooting guide](https://docs.openfaas.com/deployment/troubleshooting/) - [X] Read/searched [the docs](https://docs.openfaas.com/) - [x] Searched [past issues](/issues) ## Expected Behaviour Using python3-http template, there...
Some builders will exclude layers that do not contribute to the final target layer, meaning the `ship` layer for these templates. This means that the `test` layer is often optimized...
## Description Drain connections for python3-http ## Motivation and Context When used with OpenFaaS Standard/Enterprise, the python3-http template's handler will now ignore SIGTERM allowing the watchdog and Kubernetes to handle...
## My actions before raising this issue - [x] Followed the [troubleshooting guide](https://docs.openfaas.com/deployment/troubleshooting/) - [x] Read/searched [the docs](https://docs.openfaas.com/) - [x] Searched [past issues](/issues) #44 seems like it may be related,...
I encountered the issue described in https://github.com/openfaas/python-flask-template/issues/25 The problem still exists, and is due to Openshift assigning random user ids to containers. ## Expected Behaviour Dependencies in requirements.txt are available...
The python3-http templates use an `Event` abstraction which represents the incoming request. Currently the `Event` only holds the `request.data` as body, which is the body as byte array. Suggestion: Leverage...
## My actions before raising this issue - [x] Followed the [troubleshooting guide](https://docs.openfaas.com/deployment/troubleshooting/) - [x] Read/searched [the docs](https://docs.openfaas.com/) - [x] Searched [past issues](/issues) I'd like to suggest passing the [`path`](https://github.com/openfaas-incubator/python-flask-template/blob/master/template/python3-flask/index.py#L29)...
The python3-flask template (and likely the python2) is bitten by this Flask issue: https://github.com/pallets/flask/issues/2229 Flask / Werkzeug have a bug handling chunked transfer encoding--and perhaps any other time that Content-Length...
You should be able to run with a `--uid` flag and a random number, and still be able to access your `pip` modules inside the function. Right now that is...