aiomisc 17.7.3__py3-none-any.whl → 17.7.5__py3-none-any.whl
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/recurring.py +2 -2
- aiomisc/service/periodic.py +2 -2
- aiomisc/version.py +2 -2
- {aiomisc-17.7.3.dist-info → aiomisc-17.7.5.dist-info}/METADATA +1 -1
- {aiomisc-17.7.3.dist-info → aiomisc-17.7.5.dist-info}/RECORD +8 -8
- {aiomisc-17.7.3.dist-info → aiomisc-17.7.5.dist-info}/WHEEL +1 -1
- {aiomisc-17.7.3.dist-info → aiomisc-17.7.5.dist-info}/COPYING +0 -0
- {aiomisc-17.7.3.dist-info → aiomisc-17.7.5.dist-info}/entry_points.txt +0 -0
aiomisc/recurring.py
CHANGED
@@ -48,14 +48,14 @@ class RecurringCallback:
|
|
48
48
|
|
49
49
|
def __init__(
|
50
50
|
self, coroutine_func: CallbackType,
|
51
|
-
*args: Any, **kwargs: Any,
|
51
|
+
*args: Any, name: Optional[str] = None, **kwargs: Any,
|
52
52
|
):
|
53
53
|
self.func: Callable[..., Awaitable[Any]]
|
54
54
|
self.args: Tuple[Any, ...]
|
55
55
|
self.kwargs: Mapping[str, Any]
|
56
56
|
self._statistic: RecurringCallbackStatistic
|
57
57
|
|
58
|
-
self.name: str = repr(coroutine_func)
|
58
|
+
self.name: str = name or repr(coroutine_func)
|
59
59
|
self._statistic = RecurringCallbackStatistic(name=self.name)
|
60
60
|
self.func = utils.awaitable(coroutine_func)
|
61
61
|
self.args = args
|
aiomisc/service/periodic.py
CHANGED
@@ -15,9 +15,9 @@ class PeriodicService(Service):
|
|
15
15
|
interval: Union[int, float]
|
16
16
|
delay: Union[int, float] = 0
|
17
17
|
|
18
|
-
def __init__(self, **kwargs: Any):
|
18
|
+
def __init__(self, *, name: Optional[str] = None, **kwargs: Any):
|
19
19
|
super().__init__(**kwargs)
|
20
|
-
self.periodic = PeriodicCallback(self.callback)
|
20
|
+
self.periodic = PeriodicCallback(self.callback, name=name)
|
21
21
|
|
22
22
|
async def start(self) -> None:
|
23
23
|
assert self.interval, f"Interval illegal interval {self.interval!r}"
|
aiomisc/version.py
CHANGED
@@ -17,7 +17,7 @@ aiomisc/plugins/__main__.py,sha256=y3mykRQmimDRHb_PvY4n08vegjWTjd9CONFbCecAxxw,1
|
|
17
17
|
aiomisc/pool.py,sha256=kmTEziX7U1kXxmNsTEain9Jkzn8ZbFubuCYWaozZoRk,5764
|
18
18
|
aiomisc/process_pool.py,sha256=3O5FSIVQ6r-jf07Oyjs8Zt0wTL6cNZpV-tENwuQB63Y,3468
|
19
19
|
aiomisc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
20
|
-
aiomisc/recurring.py,sha256=
|
20
|
+
aiomisc/recurring.py,sha256=KjqirbRscmNUk53xn0zyGCq2hmQZkceLERJngRyrzNQ,4959
|
21
21
|
aiomisc/service/__init__.py,sha256=_JSkI4Q78UljG4CvhK6He2UGLxJaQS6cVwZ9QT0cSWo,607
|
22
22
|
aiomisc/service/aiohttp.py,sha256=Lfw1dm77zscBZP0H4sKYlVye7RfE0EPWeSSX5V-mvD0,4091
|
23
23
|
aiomisc/service/asgi.py,sha256=S6ejgg7GpHfUzuj46g8QuLXTHn0YWwqI_pAGbXfoNjE,1583
|
@@ -31,7 +31,7 @@ aiomisc/service/dns/store.py,sha256=PCYp-H1UoFzUVaYfSnK78_TG3fw1CeIzg-ndMgu_cE4,
|
|
31
31
|
aiomisc/service/dns/tree.py,sha256=q9VRcVxggrClUHyGZZqqSByMaHdU4nYPC1NdT17cVWM,1575
|
32
32
|
aiomisc/service/dns/zone.py,sha256=6Xmrl_leLalSiRQWWNuwGtZVw31Y93i9K2j0JU1vt-4,2174
|
33
33
|
aiomisc/service/grpc_server.py,sha256=G1iRGX3jAfv3fpzNnw_n6UuhORmIZK4cz6aAi7t7qcU,4553
|
34
|
-
aiomisc/service/periodic.py,sha256=
|
34
|
+
aiomisc/service/periodic.py,sha256=Q871Kw6L_L4EDKVl_0pJI2eLWpAjwYs9FnLKeCc9lBY,1283
|
35
35
|
aiomisc/service/process.py,sha256=mZf8muZJNWQo95pUmzchMk08MJMhLifFK8m4CnNX49k,4477
|
36
36
|
aiomisc/service/profiler.py,sha256=6KiJsU7tD5eO4YKZXYujV2E8P-G8GUqLAGIl0AuPNG4,1503
|
37
37
|
aiomisc/service/raven.py,sha256=VHqnXWx-_r71_pjFniIB_E4CgT2reuRD1EB4yEC0hzE,12214
|
@@ -45,7 +45,7 @@ aiomisc/signal.py,sha256=_iiC2jukXg7-LLirIl1YATlKIIsKLbmTNFr1Ezheu7g,1728
|
|
45
45
|
aiomisc/thread_pool.py,sha256=591u5HV1aBmBRcaVm4kAtMLPZOb6veqhT9wkts_knqE,14017
|
46
46
|
aiomisc/timeout.py,sha256=5jNDooLW4MAe6ZUIKhkiX29CoyI0zlXd-dZoZwQPxak,920
|
47
47
|
aiomisc/utils.py,sha256=6yTfTpeRCVzfZp-MJCmB1oayOHUBVwQwzC3U5PBAjn8,11919
|
48
|
-
aiomisc/version.py,sha256=
|
48
|
+
aiomisc/version.py,sha256=8FWFY2OsZehRQ96kno-8V30CZiUv1mszZ4ccoyij48I,154
|
49
49
|
aiomisc/worker_pool.py,sha256=GA91KdOrBlqHthbVSTxu_d6BsBIbl-uKqW2NxqSafG0,11107
|
50
50
|
aiomisc_log/__init__.py,sha256=N3g8Ea1YE2dWPDd-MwohuAn3Y0pBxSyL4l4Jsxqkv0Q,4854
|
51
51
|
aiomisc_log/enum.py,sha256=_zfCZPYCGyI9KL6TqHiYVlOfA5U5MCbsuCuDKxDHdxg,1549
|
@@ -63,8 +63,8 @@ aiomisc_worker/process_inner.py,sha256=8ZtjCSLrgySW57OIbuGrpEWxfysRLYKx1or1YaAqx
|
|
63
63
|
aiomisc_worker/protocol.py,sha256=1smmlBbdreSmnrxuhHaUMUC10FO9xMIEcedhweQJX_A,2705
|
64
64
|
aiomisc_worker/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
65
65
|
aiomisc_worker/worker.py,sha256=f8nCFhlKh84UUBUaEgCllwMRvVZiD8_UUXaeit6g3T8,3236
|
66
|
-
aiomisc-17.7.
|
67
|
-
aiomisc-17.7.
|
68
|
-
aiomisc-17.7.
|
69
|
-
aiomisc-17.7.
|
70
|
-
aiomisc-17.7.
|
66
|
+
aiomisc-17.7.5.dist-info/COPYING,sha256=Ky_8CQMaIixfyOreUBsl0hKN6A5fLnPF8KPQ9molMYA,1125
|
67
|
+
aiomisc-17.7.5.dist-info/METADATA,sha256=7dISlxwcKVqF6kKOhpWI-mWXecHOvXzOPO5a4wQOQGI,15685
|
68
|
+
aiomisc-17.7.5.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
69
|
+
aiomisc-17.7.5.dist-info/entry_points.txt,sha256=KRsSPCwKJyGTWrvzpwbS0yIDwzsgDA2X6f0CBWYmNao,55
|
70
|
+
aiomisc-17.7.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|