mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(backend): drastically increase batching time for the agent run (#9654)
<!-- Clearly explain the need for these changes: --> We accidently send several emails within 10 mins and we're gonna get blocked for spam if we keep it up ### Changes 🏗️ - moves 1 min to 60 min timer <!-- Concisely describe all of the changes made in this pull request: --> ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: <!-- Put your test plan here: --> - [x] Test via batching a series of notiications over an hour
This commit is contained in:
committed by
Zamil Majdy
parent
9c31c79898
commit
b6260b5ce9
@@ -381,7 +381,7 @@ class UserNotificationBatchDTO(BaseModel):
|
||||
|
||||
def get_batch_delay(notification_type: NotificationType) -> timedelta:
|
||||
return {
|
||||
NotificationType.AGENT_RUN: timedelta(minutes=1),
|
||||
NotificationType.AGENT_RUN: timedelta(minutes=60),
|
||||
NotificationType.ZERO_BALANCE: timedelta(minutes=60),
|
||||
NotificationType.LOW_BALANCE: timedelta(minutes=60),
|
||||
NotificationType.BLOCK_EXECUTION_FAILED: timedelta(minutes=60),
|
||||
|
||||
Reference in New Issue
Block a user