List import queue questions

jsrhodes15

New Member
Hello,

I wanted to know if it is possible to setup/configure the list-import-queue to run automatically? It seems like it take an ID (maybe that's the file name), which means I would need to manually run this command from the CLI anytime someone wants to use the queue. Is it possible to have this run like a cron? If it is possible, I have not been able to figure it out.
 
Hello,
But it does run automatically. It pushes jobs into the queue when you import into a list, which runs on cron.

Cosmin
 
This is what I thought, but for some reason my list never gets processed. Here is my cron file:

Code:
* * * * * /var/www/html/run-cron.sh send-campaigns --verbose=1 >> /var/log/cron.log 2>&1
* * * * * /var/www/html/run-cron.sh queue --verbose=1 >> /var/log/cron.log 2>&1
*/2 * * * * /var/www/html/run-cron.sh send-transactional-emails --verbose=1 >> /var/log/cron.log 2>&1
*/10 * * * * /var/www/html/run-cron.sh bounce-handler --verbose=1 >> /var/log/cron.log 2>&1
*/20 * * * * /var/www/html/run-cron.sh feedback-loop-handler --verbose=1 >> /var/log/cron.log 2>&1
*/3 * * * * /var/www/html/run-cron.sh process-delivery-and-bounce-log --verbose=1 >> /var/log/cron.log 2>&1
0 * * * * /var/www/html/run-cron.sh hourly --verbose=1 >> /var/log/cron.log 2>&1
0 0 * * * /var/www/html/run-cron.sh daily --verbose=1 >> /var/log/cron.log 2>&1

I thought the queue command was the one that ultimately handled import, and I do see it running every minute with this setup, but it never picks up the list. Please let me know if I am missing something.

Just FYI the `run-cron.sh` file is just a wrapper to ensure cron has access to necessary ENV variables.
Code:
#!/bin/bash

# Export the necessary DB ENV vars
export DB_HOST=**********
export DB_NAME=**********
export DB_USER=*********
export DB_PASS=*********

# Run MailWizz CLI command with passed arguments
/usr/local/bin/php -q /var/www/html/apps/console/console.php "$@"

EDIT: To give a little more info - I am not seeing anything in the queue table in the DB. The table is completely empty. This is after I have tried Import CSV (queue) several times.

Thank you!
 
Last edited:
Hello,
Do you have this kind of imports enabled from Backend->Settings->Import/Export. Better open a support ticket and share your credentials there.

Cosmin
 
Back
Top