Skip to content

Instantly share code, notes, and snippets.

@awah95
Forked from sc0rpi0n95/Mautic Cronjobs
Last active August 8, 2019 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awah95/f65c2af947d2c4ceef012741defc3fe5 to your computer and use it in GitHub Desktop.
Save awah95/f65c2af947d2c4ceef012741defc3fe5 to your computer and use it in GitHub Desktop.
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