Fix: Agregar cron job para mensajes programados y mostrar texto completo sin variables

This commit is contained in:
Lizandro Guarnizo
2026-05-26 13:24:29 -05:00
parent 781f474466
commit 9f27ffdbb6
2 changed files with 12 additions and 2 deletions
+3
View File
@@ -131,6 +131,9 @@ fi
# Configurar crontab para tareas programadas (usar /etc/crontabs/root para que crond lo ejecute como root)
echo "⏰ Configurando cron jobs..."
cat > /etc/crontabs/root <<EOF
# Enviar mensajes programados cada minuto
* * * * * cd /var/www/html && /usr/local/bin/php send_scheduled_messages.php >> /var/www/html/logs/scheduled_messages.log 2>&1
# Procesar mensajes delayed cada minuto
* * * * * cd /var/www/html && /usr/local/bin/php -r "require 'vendor/autoload.php'; use WhatsApp\Queue\RedisQueue; \$q = new RedisQueue(); \$q->processDelayed('messages'); \$q->processDelayed('media');" >> /tmp/delayed_processor.log 2>&1