feat: Add daily Telegram reports (morning and afternoon)
- Morning report (8:00 AM): scheduled posts for today + new interactions - Afternoon report (6:00 PM): published count + pending interactions - Reports are sent via Telegram with formatted summaries Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,8 @@ celery_app = Celery(
|
||||
"worker.tasks.publish_post",
|
||||
"worker.tasks.fetch_interactions",
|
||||
"worker.tasks.cleanup",
|
||||
"worker.tasks.content_memory"
|
||||
"worker.tasks.content_memory",
|
||||
"worker.tasks.daily_reports"
|
||||
]
|
||||
)
|
||||
|
||||
@@ -77,4 +78,16 @@ celery_app.conf.beat_schedule = {
|
||||
"task": "worker.tasks.content_memory.refresh_best_posts_yaml",
|
||||
"schedule": crontab(day_of_week=0, hour=5, minute=0), # Domingos 5 AM
|
||||
},
|
||||
|
||||
# Reporte matutino por Telegram (8:00 AM Tijuana)
|
||||
"telegram-morning-report": {
|
||||
"task": "worker.tasks.daily_reports.morning_report",
|
||||
"schedule": crontab(hour=8, minute=0),
|
||||
},
|
||||
|
||||
# Reporte vespertino por Telegram (6:00 PM Tijuana)
|
||||
"telegram-afternoon-report": {
|
||||
"task": "worker.tasks.daily_reports.afternoon_report",
|
||||
"schedule": crontab(hour=18, minute=0),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user