Listeners for main server process (#2018)

* Initial POC

* Add test case

* Resolve create_server and Gunicorn serve)

* add testr coverage
This commit is contained in:
Adam Hopkins
2021-03-01 15:03:26 +02:00
committed by GitHub
parent 170177feb0
commit 4b968dc611
6 changed files with 99 additions and 3 deletions

View File

@@ -13,6 +13,8 @@ class ListenerEvent(str, Enum):
AFTER_SERVER_START = auto()
BEFORE_SERVER_STOP = auto()
AFTER_SERVER_STOP = auto()
MAIN_PROCESS_START = auto()
MAIN_PROCESS_STOP = auto()
class ListenerMixin: