mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
feat(backend): send emails daily instead of hourly (#9927)
<!-- Clearly explain the need for these changes: --> John thinks an hourly email is a bit much; I'm inclined to agree. ### Changes 🏗️ <!-- Concisely describe all of the changes made in this pull request: --> swaps the time for dealing the batch for the agent runs from one hour to one day ### 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] No testing done
This commit is contained in:
@@ -369,7 +369,7 @@ class UserNotificationBatchDTO(BaseModel):
|
||||
|
||||
def get_batch_delay(notification_type: NotificationType) -> timedelta:
|
||||
return {
|
||||
NotificationType.AGENT_RUN: timedelta(minutes=60),
|
||||
NotificationType.AGENT_RUN: timedelta(days=1),
|
||||
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