commit f4b78606bafd0c118de67f6e1ccdad8e0c5f555d
Author: Dan Smith <email address hidden>
Date: Wed Jul 22 10:03:58 2020 -0700
Make wsgi_app support graceful shutdown
This makes us wait for all running threads in the tasks_pool threadpool
before exiting. Tested with uwsgi via devstack, with a long-running
image conversion task. Indeed, uwsgi triggers a graceful shutdown, we
wait for the remaining thread, and then exit when the conversion has
completed.
Reviewed: https:/ /review. opendev. org/742493 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=f4b78606baf d0c118de67f6e1c cdad8e0c5f555d
Committed: https:/
Submitter: Zuul
Branch: master
commit f4b78606bafd0c1 18de67f6e1ccdad 8e0c5f555d
Author: Dan Smith <email address hidden>
Date: Wed Jul 22 10:03:58 2020 -0700
Make wsgi_app support graceful shutdown
This makes us wait for all running threads in the tasks_pool threadpool
before exiting. Tested with uwsgi via devstack, with a long-running
image conversion task. Indeed, uwsgi triggers a graceful shutdown, we
wait for the remaining thread, and then exit when the conversion has
completed.
Closes-Bug: #1888713 71607825eb4721f ee1c6bdd1e6
Change-Id: I0cec7771ab8ce4