ez-a-sync 0.22.10__py3-none-any.whl → 0.22.12__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.
Potentially problematic release.
This version of ez-a-sync might be problematic. Click here for more details.
- a_sync/executor.py +13 -1
- {ez_a_sync-0.22.10.dist-info → ez_a_sync-0.22.12.dist-info}/METADATA +1 -1
- {ez_a_sync-0.22.10.dist-info → ez_a_sync-0.22.12.dist-info}/RECORD +6 -6
- {ez_a_sync-0.22.10.dist-info → ez_a_sync-0.22.12.dist-info}/LICENSE.txt +0 -0
- {ez_a_sync-0.22.10.dist-info → ez_a_sync-0.22.12.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.22.10.dist-info → ez_a_sync-0.22.12.dist-info}/top_level.txt +0 -0
a_sync/executor.py
CHANGED
|
@@ -112,10 +112,22 @@ class _AsyncExecutorMixin(cf.Executor, _DebugDaemonMixin):
|
|
|
112
112
|
*args: Positional arguments for the function.
|
|
113
113
|
**kwargs: Keyword arguments for the function.
|
|
114
114
|
"""
|
|
115
|
+
# TODO: make prettier strings for other types
|
|
116
|
+
if type(fn).__name__ == "function":
|
|
117
|
+
fnid = getattr(fn, '__qualname__', fn.__name__)
|
|
118
|
+
if fn.__module__:
|
|
119
|
+
fnid = f"{fn.__module__}.{fnid}"
|
|
120
|
+
|
|
121
|
+
msg = f"%s processing %s{args}"
|
|
122
|
+
if kwargs:
|
|
123
|
+
msg = f"{msg[:-1]} {', '.join(f'{k}={v}' for k, v in kwargs.items())})"
|
|
124
|
+
else:
|
|
125
|
+
msg = f"{msg[:-2]})"
|
|
126
|
+
|
|
115
127
|
while not fut.done():
|
|
116
128
|
await asyncio.sleep(15)
|
|
117
129
|
if not fut.done():
|
|
118
|
-
self.logger.debug(
|
|
130
|
+
self.logger.debug(msg, self, fnid)
|
|
119
131
|
|
|
120
132
|
# Process
|
|
121
133
|
|
|
@@ -4,7 +4,7 @@ a_sync/_smart.py,sha256=mZ7zD8usbRG3dEjddwnz46gwFxcDjPri6na7vCPX9hw,6989
|
|
|
4
4
|
a_sync/_typing.py,sha256=GTCqBBgeCGoB_wLb0WoizBrrYf2a-2GXgK82CZQKP2E,5368
|
|
5
5
|
a_sync/aliases.py,sha256=kkv7JGdlJeyy2x8JauCy3D6spbYBCTMgNtC_QrT118s,213
|
|
6
6
|
a_sync/exceptions.py,sha256=0VHUEBgTVmaF8LIuFINCv1YCuC_GfCJgmwnPP3I9HRI,6597
|
|
7
|
-
a_sync/executor.py,sha256=
|
|
7
|
+
a_sync/executor.py,sha256=n3yvW5G2MZDsNCOQgETyv3POrcZKqEgxf7euZCOeOgk,13397
|
|
8
8
|
a_sync/future.py,sha256=zQy3Gv1UvX399Yx5-W-ygxYZSS_C3aEhQlEz8gyoB90,26093
|
|
9
9
|
a_sync/iter.py,sha256=riMXy2RSxmOtgv-L521YSWSTeZ8QXWhc8irU6mjEgkk,20804
|
|
10
10
|
a_sync/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -67,8 +67,8 @@ tests/test_modified.py,sha256=H_Z98JNvy1Ze2Qae6Jgyo1gPqOGycVkwmGutrSmnQmk,247
|
|
|
67
67
|
tests/test_semaphore.py,sha256=pncCO3Y_xus9f85nCPY6Pr4WbUbHpNZNT5tBgwUAbZA,1628
|
|
68
68
|
tests/test_singleton.py,sha256=KGLLWr4eM3PHh_MBDubseTxAaS0r7Bddal2wY-qY4oA,539
|
|
69
69
|
tests/test_task.py,sha256=BpODWsy6I2LAZ4VZ4SGa4R6rly1U10gz0JjIPoW6GrI,7389
|
|
70
|
-
ez_a_sync-0.22.
|
|
71
|
-
ez_a_sync-0.22.
|
|
72
|
-
ez_a_sync-0.22.
|
|
73
|
-
ez_a_sync-0.22.
|
|
74
|
-
ez_a_sync-0.22.
|
|
70
|
+
ez_a_sync-0.22.12.dist-info/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
|
|
71
|
+
ez_a_sync-0.22.12.dist-info/METADATA,sha256=lVLDpdteSbmehAaNlgMu2PhAzJ_9KBTQY-wnxJvKJ0s,533
|
|
72
|
+
ez_a_sync-0.22.12.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
73
|
+
ez_a_sync-0.22.12.dist-info/top_level.txt,sha256=GVK_7kp7dgBLeHp84iIQdsJmiXnrXd-5sIf2x0Q-VKc,13
|
|
74
|
+
ez_a_sync-0.22.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|