glance/glance/tests/unit/async_
Dan Smith 16a5431c66 Make glance-api able to do async tasks in WSGI mode
This teaches glance-api how to do async threading things when it is
running in pure-WSGI mode. In order to do that, a refactoring of things
that currently depend on eventlet is required.

It adds a [wsgi]/task_pool_threads configuration knob, which is used
in the case of pure-WSGI and native threads to constrain the number
of threads in that pool (and thus the task parallelism). This will
allow tuning by the operator, but also lets us default that to just
a single thread in the backport of these fixes so that we can avoid
introducing a new larger footprint in the backport unexpectedly.

Partial-Bug: #1888713
Depends-On: https://review.opendev.org/#/c/742047/
Change-Id: Ie15028b75fb8518ec2b0c0c0386d21782166f759
2020-07-24 11:13:45 -07:00
..
flows Make import task capable of running as admin on behalf of user 2020-07-10 08:59:54 -07:00
__init__.py Rename async package to async_ 2018-08-07 14:42:14 -04:00
test_async.py Make glance-api able to do async tasks in WSGI mode 2020-07-24 11:13:45 -07:00
test_taskflow_executor.py Make glance-api able to do async tasks in WSGI mode 2020-07-24 11:13:45 -07:00