Archived
feat: send bounded push digests for update bursts (Closes #569)
This commit is contained in:
1 parent
c94fc5308f
commit
5e0683cd4a
7 files changed
+245
-5
No files matched your search
@@ -90,6 +90,10 @@ async def _push_poll_loop() -> None:
|
||||
max_concurrency = max(
|
||||
1, int(os.getenv("STACKCHAIN_PUSH_MAX_CONCURRENCY", "8"))
|
||||
)
|
||||
max_individual_notifications = max(
|
||||
0,
|
||||
int(os.getenv("STACKCHAIN_PUSH_MAX_INDIVIDUAL_NOTIFICATIONS", "3")),
|
||||
)
|
||||
while True:
|
||||
await asyncio.sleep(interval)
|
||||
try:
|
||||
@@ -101,6 +105,7 @@ async def _push_poll_loop() -> None:
|
||||
lease_seconds=lease_seconds,
|
||||
send_timeout_seconds=send_timeout,
|
||||
max_concurrency=max_concurrency,
|
||||
max_individual_notifications=max_individual_notifications,
|
||||
)
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
|
||||
Reference in new issue
Block a user