[program:whatsapp-queue]
process_name=%(program_name)s_%(process_num)02d
# Urutan: template-ingest (api/v1/send-template-ingest) -> whatsapp (kirim pesan) -> campaign (terpisah)
# Connection harus sama dengan dispatch: WA_QUEUE_CONNECTION=redis di .env.
# command=/usr/bin/php /var/www/html/waba_saas/artisan queue:work database --queue=template-ingest,whatsapp,campaign --tries=5 --timeout=120 --sleep=3 --max-time=3600
command=/usr/bin/php /var/www/html/waba_saas/artisan queue:work redis --queue=template-ingest,whatsapp,campaign --tries=5 --timeout=120 --sleep=3 --max-time=3600
directory=/var/www/html/waba_saas
user=www-data
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
numprocs=2
redirect_stderr=true
stdout_logfile=/var/www/html/waba_saas/storage/logs/whatsapp-queue.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=5
stopwaitsecs=3600
