migrate session handling to aioweb_tls/refactoring of helpers
This commit is contained in:
1 parent
3a8a12ac6e
commit
1441e7179c
10 files changed
+244
-295
No files matched your search
@@ -6,6 +6,24 @@ from datetime import datetime
|
||||
from pydantic.dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class CycleResult:
|
||||
"""Tallied outcome of one monitor cycle.
|
||||
|
||||
Pure counts for the caller to log or act on as it sees fit; no policy is
|
||||
baked in.
|
||||
|
||||
Attributes:
|
||||
successes: Category tasks that completed without an expected error.
|
||||
failures: Category tasks that raised an expected error.
|
||||
skipped: True when pre_task_func failed and no category tasks ran.
|
||||
"""
|
||||
|
||||
successes: int = 0
|
||||
failures: int = 0
|
||||
skipped: bool = False
|
||||
|
||||
|
||||
@dataclass
|
||||
class ConsumerConfig:
|
||||
"""Configuration for a single retailer's consumer.
|
||||
|
||||
Reference in new issue
Block a user