mm-std 0.3.12__py3-none-any.whl → 0.3.13__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.
@@ -23,6 +23,7 @@ class AsyncScheduler:
23
23
  args: Args = ()
24
24
  kwargs: Kwargs = field(default_factory=dict)
25
25
  run_count: int = 0
26
+ error_count: int = 0
26
27
  last_run: datetime | None = None
27
28
  running: bool = False
28
29
 
@@ -50,6 +51,7 @@ class AsyncScheduler:
50
51
  try:
51
52
  await task.func(*task.args, **task.kwargs)
52
53
  except Exception:
54
+ task.error_count += 1
53
55
  self._logger.exception("AsyncScheduler exception")
54
56
 
55
57
  # Calculate elapsed time and sleep if needed so that tasks never overlap.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mm-std
3
- Version: 0.3.12
3
+ Version: 0.3.13
4
4
  Requires-Python: >=3.12
5
5
  Requires-Dist: anyio>=4.9.0
6
6
  Requires-Dist: cryptography~=44.0.2
@@ -1,5 +1,5 @@
1
1
  mm_std/__init__.py,sha256=BJzVoqux6-YWxGMyXJS34v6CgKh3V7SrpV7eXIUVfbw,2718
2
- mm_std/async_concurrency.py,sha256=IfnOx1Cwkc134P9F9_giNTyEYIXPj-LdzafPZAwA-5Y,4365
2
+ mm_std/async_concurrency.py,sha256=q4I2NWbm6HkGLg2sWaUDitp4J02zMCopT5CLueEfdu8,4432
3
3
  mm_std/command.py,sha256=ze286wjUjg0QSTgIu-2WZks53_Vclg69UaYYgPpQvCU,1283
4
4
  mm_std/concurrency.py,sha256=4kKLhde6YQYsjJJjH6K5eMQj6FtegEz55Mo5TmhQMM0,5242
5
5
  mm_std/config.py,sha256=4ox4D2CgGR76bvZ2n2vGQOYUDagFnlKEDb87to5zpxE,1871
@@ -20,6 +20,6 @@ mm_std/str.py,sha256=BEjJ1p5O4-uSYK0h-enasSSDdwzkBbiwdQ4_dsrlEE8,3257
20
20
  mm_std/toml.py,sha256=CNznWKR0bpOxS6e3VB5LGS-Oa9lW-wterkcPUFtPcls,610
21
21
  mm_std/types_.py,sha256=hvZlnvBWyB8CL_MeEWWD0Y0nN677plibYn3yD-5g7xs,99
22
22
  mm_std/zip.py,sha256=axzF1BwcIygtfNNTefZH7hXKaQqwe-ZH3ChuRWr9dnk,396
23
- mm_std-0.3.12.dist-info/METADATA,sha256=G3VmqlSd0N1ctXXLUyQWU8pJYHBLW98sYKoPsz97clE,410
24
- mm_std-0.3.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- mm_std-0.3.12.dist-info/RECORD,,
23
+ mm_std-0.3.13.dist-info/METADATA,sha256=XdH9K24MAS1uaQejsI0BU7TbX7yofF8E5_xUbfe-WcQ,410
24
+ mm_std-0.3.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
+ mm_std-0.3.13.dist-info/RECORD,,