• Resolved pablog

    (@pablogutierrez)


    Hi!

    We have been using MailChimp User Sync for some months and is GREAT!

    However, we have the following 2 questions related to CLI Commands:

    1. We see the text “There are XXXX background jobs waiting to be processed.” and we are trying to clean the queue with wp mailchimp-sync process-queue command. We don’t know too much about how to execute this commands but we are giving it a try with WinSCP. The question is: from which specific directory should we execute this command? Any guide we can use?

    2. If last step is succesful, we would like to create a cron for this process queue command (auto-sync is not working for us). What would be the whole string (command) we should setup as a cron to execute this?

    Thanks a lot for your help and support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Pablo,

    The plugin should actually automatically process jobs in the queue using the default WP Cron system, so it should not be necessary to call the WP CLI command manually. If you install a plugin like WP Cron Manager, do you see the “mailchimp_sync_process_queue” action scheduled?

    That said, a server cronjob can be a bit more performant and reliable so if you want then you can surely set one up of course. If you have SSH access to your server then make sure you have WP CLI installed, navigate to the root directory of your WordPress installation and run the command:

    
    wp mailchimp-sync process-queue
    

    In a cronjob, this should look something like this to run the command every minute:

    
    * * * * * cd /path/to/wordpress && /usr/local/bin/wp mailchimp-sync process-queue
    

    Hope that helps. Good luck!

    Thread Starter pablog

    (@pablogutierrez)

    Hi Danny,

    Thanks for your help. We installed a plugin to check the cron manager. We only see mailchimp_user_sync_run and mc4wp_refresh_mailchimp_lists. But we don’t see mailchimp_sync_process_queue.

    Could there be an issue? We are using the latest versions.

    Thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2 CLI Command Questions’ is closed to new replies.