Redis for Queue Processing
Replace the default database queue driver with Redis for faster, more reliable campaign processing. Covers install, Laravel config, and queue monitoring.
AcelleMail uses Laravel queues to process emails asynchronously. Without queue workers running, emails won't be sent, automations won't trigger, and bounces won't be processed.
AcelleMail's scheduler handles periodic tasks. Add this to your crontab:
sudo crontab -u www-data -e
# Add this line:
* * * * * cd /var/www/acellemail && php artisan schedule:run >> /dev/null 2>&1
The scheduler runs these tasks:
sudo apt install supervisor -y
sudo nano /etc/supervisor/conf.d/acellemail-worker.conf
[program:acellemail-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/acellemail/artisan queue:work redis --sleep=3 --tries=3 --max-time=3600
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=www-data
numprocs=2
redirect_stderr=true
stdout_logfile=/var/www/acellemail/storage/logs/worker.log
stopwaitsecs=3600
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start acellemail-worker:*
# Check status
sudo supervisorctl status
# View logs
tail -f /var/www/acellemail/storage/logs/worker.log
# Restart after code changes
sudo supervisorctl restart acellemail-worker:*
Using Redis as queue driver is faster than database driver:
sudo apt install redis-server -y
sudo systemctl enable redis-server
In .env:
QUEUE_CONNECTION=redis
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
# Check if workers are running
sudo supervisorctl status
# Check queue size
php artisan queue:monitor redis:default --max=100
# Process failed jobs
php artisan queue:retry all
# Check supervisor logs
sudo tail -f /var/log/supervisor/supervisord.log
# Check worker logs
tail -f /var/www/acellemail/storage/logs/worker.log
Replace the default database queue driver with Redis for faster, more reliable campaign processing. Covers install, Laravel config, and queue monitoring.
Set up a daily automated MySQL backup using a simple shell script and cron. Includes rotation to keep disk usage in check.
Tune queue workers, MySQL, and PHP-FPM to handle high-volume campaign sends without degrading server stability or delivery speed.
Replace the default database queue driver with Redis for faster, more reliable campaign processing. Covers install, Laravel config, and queue monitoring.
Tune queue workers, MySQL, and PHP-FPM to handle high-volume campaign sends without degrading server stability or delivery speed.
Set up a daily automated MySQL backup using a simple shell script and cron. Includes rotation to keep disk usage in check.
AcelleMail is the self-hosted email marketing platform you control end-to-end.
View Pricing