aiomisc 17.5.15__tar.gz → 17.5.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aiomisc-17.5.15 → aiomisc-17.5.17}/PKG-INFO +1 -1
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/uvicorn.py +8 -4
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/version.py +2 -2
- {aiomisc-17.5.15 → aiomisc-17.5.17}/pyproject.toml +1 -1
- {aiomisc-17.5.15 → aiomisc-17.5.17}/COPYING +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/README.rst +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/__init__.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/_context_vars.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/aggregate.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/backoff.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/circuit_breaker.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/compat.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/context.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/counters.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/cron.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/entrypoint.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/io.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/iterator_wrapper.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/log.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/periodic.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/plugins/__init__.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/plugins/__main__.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/pool.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/process_pool.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/py.typed +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/recurring.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/__init__.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/aiohttp.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/asgi.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/base.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/carbon.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/cron.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/grpc_server.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/periodic.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/process.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/profiler.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/raven.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/sdwatchdog.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/tcp.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/tls.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/tracer.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/service/udp.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/signal.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/thread_pool.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/timeout.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/utils.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc/worker_pool.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_log/__init__.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_log/enum.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_log/formatter/__init__.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_log/formatter/color.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_log/formatter/journald.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_log/formatter/json.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_log/formatter/rich.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_log/py.typed +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_worker/__init__.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_worker/__main__.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_worker/forking.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_worker/process.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_worker/process_inner.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_worker/protocol.py +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_worker/py.typed +0 -0
- {aiomisc-17.5.15 → aiomisc-17.5.17}/aiomisc_worker/worker.py +0 -0
@@ -24,6 +24,7 @@ UvicornApplication = Union[ASGIApplication, Callable]
|
|
24
24
|
class UvicornService(Service, abc.ABC):
|
25
25
|
__async_required__: Tuple[str, ...] = (
|
26
26
|
"start",
|
27
|
+
"stop",
|
27
28
|
"create_application",
|
28
29
|
)
|
29
30
|
|
@@ -114,8 +115,11 @@ class UvicornService(Service, abc.ABC):
|
|
114
115
|
)
|
115
116
|
if not self.sock:
|
116
117
|
self.sock = config.bind_socket()
|
117
|
-
server = Server(config)
|
118
|
-
|
119
|
-
|
118
|
+
self.server = Server(config)
|
119
|
+
self.serve_task = asyncio.create_task(
|
120
|
+
self.server.serve(sockets=[self.sock])
|
121
|
+
)
|
120
122
|
|
121
|
-
|
123
|
+
async def stop(self, exception: Optional[Exception] = None) -> None:
|
124
|
+
self.server.should_exit = True
|
125
|
+
await self.serve_task
|
@@ -1,7 +1,7 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "aiomisc"
|
3
3
|
# This is a dummy version which will be rewritten with poem-plugins
|
4
|
-
version = "17.5.
|
4
|
+
version = "17.5.17"
|
5
5
|
description = "aiomisc - miscellaneous utils for asyncio"
|
6
6
|
authors = ["Dmitry Orlov <me@mosquito.su>"]
|
7
7
|
readme = "README.rst"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|