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

Drain connections for python3-http #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on May 25, 2023

  1. Drain connections for python3-http

    When used with OpenFaaS Standard/Enterprise, the python3-http
    template's handler will now ignore SIGTERM allowing the
    watchdog and Kubernetes to handle the shutdown.
    
    When there are ongoing requests, these will be processed
    before exiting.
    
    When there are no ongoing requests, the function will
    exit immediately.
    
    Tested with OpenFaaS Standard a long running sleep function which
    went into a Terminating status. The function continued to
    execute its sleep for the whole duration, whilst the new
    replica came online and was ready in the meantime.
    
    This is the same approach tested for the golang-http templates.
    
    Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
    alexellis committed May 25, 2023
    Configuration menu
    Copy the full SHA
    b1dd32b View commit details
    Browse the repository at this point in the history