Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mautic Cronjob Codes - Last Updated August 8, 2019
_____________________________________________________
I lost access to my previous account GitHub Account (@sc0rpi0n95), So i forked the code here to make modifications and keep it updated.
https://awah.net
Disclaimer: This code is not the official documentation from Mautic.org, not is it indorced by Mautic.org. Please use at your own discretion.
Usage:
Step 1: Replace "*" with your directory path to your Mautic Installation
Step 2: create folder inside your Mautic installation called "cron_logs"
Step 3: Copy the code into your Cron Jobs manager.
Every Minute (Shared: Every 1-15 minutes)
_____________________________________________________
/usr/local/bin/php */app/console mautic:segments:update > */cron_logs/segments_update.log 2>&1
/usr/local/bin/php */app/console mautic:campaigns:rebuild > */cron_logs/campaigns_rebuild.log 2>&1
/usr/local/bin/php */app/console mautic:campaigns:trigger > */cron_logs/campaigns_trigger.log 2>&1
/usr/local/bin/php */app/console mautic:emails:send > */cron_logs/emails_sends.log 2>&1
/usr/local/bin/php */app/console mautic:messages:send > */cron_logs/messages_sends.log 2>&1
/usr/local/bin/php */app/console mautic:broadcasts:send > */cron_logs/broadcasts.log 2>&1
Every 5 Minutes (Shared: Every 5-20 Minutes)
_____________________________________________________
/usr/local/bin/php */app/console mautic:email:fetch > */cron_logs/email_fetch.log 2>&1
/usr/local/bin/php */app/console mautic:webhooks:process > */cron_logs/webhooks_process.log 2>&1
Every 30 Minutes (Shared: Every 30 - 60 Minutes)
_____________________________________________________
/usr/local/bin/php */app/console mautic:social:monitoring > */cron_logs/social_monitoring.log 2>&1
Daily (Shared: Daily)
_____________________________________________________
/usr/local/bin/php */app/console mautic:iplookup:download > */cron_logs/iplookup.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.