feat: Add daily Threads content generation for manual publishing

- Add generate_threads_manual_posts() task that creates 2 posts daily
- Posts are saved with status 'draft' for manual copy/paste to Threads
- Uses tip_tech template with rotating categories (productividad, ia, etc.)
- Scheduled to run daily at 7:00 AM (Tijuana timezone)
- Posts appear in dashboard for easy access

This is a workaround while waiting for Threads API approval.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 22:54:07 +00:00
parent 67263e7ed9
commit 1239c4af2c
2 changed files with 85 additions and 0 deletions

View File

@@ -79,6 +79,13 @@ celery_app.conf.beat_schedule = {
"schedule": crontab(day_of_week=0, hour=5, minute=0), # Domingos 5 AM
},
# Generar posts para Threads (publicación manual) - 7:00 AM
"generate-threads-manual": {
"task": "worker.tasks.generate_content.generate_threads_manual_posts",
"schedule": crontab(hour=7, minute=0),
"args": [2], # 2 posts diarios
},
# Reporte matutino por Telegram (8:00 AM Tijuana)
"telegram-morning-report": {
"task": "worker.tasks.daily_reports.morning_report",