Mautic Community Forums

Cron Job for each Campaign?

Hello:



I have a cron setup for campaign trigger.

Code:
php /home/proje485/public_html/mailstudio/messages/app/console mautic:campaigns:trigger > /home/proje485/public_html/mailstudio/log.file 2>&1

Strange thing is the output for the cron ( I am writing to a log file) only includes events for the first campaign. Do I need triggers for each campaign?

Here is the output of the log file: Note: 0 (zero) is ok ( I think) because I do not have anything there to trigger at the moment!

Triggering events for campaign 1
Triggering first level events
0 total events(s) to be processed in batches of 100
0 event(s) executed

Triggering scheduled events
0 total events(s) to be processed in batches of 100
0 event(s) executed

Triggering 'non-action' events
0 event(s) executed

Triggering events for campaign 2
Triggering first level events
20 total events(s) to be processed in batches of 100
0/20 [>---------------------------] 0%
2/20 [==>-------------------------] 10%
4/20 [=====>----------------------] 20%
6/20 [========>-------------------] 30%
8/20 [===========>----------------] 40%
10/20 [==============>-------------] 50%
12/20 [================>-----------] 60%

Thanks, Rich

Hello:

I have a cron setup for campaign trigger.

php /home/proje485/public_html/mailstudio/messages/app/console mautic:campaigns:trigger > /home/proje485/public_html/mailstudio/log.file 2>&1

Strange thing is the output for the cron ( I am writing to a log file) only includes events for the first campaign. Do I need triggers for each campaign?

Here is the output of the log file: Note: 0 (zero) is ok ( I think) because I do not have anything there to trigger at the moment!

Triggering events for campaign 1
Triggering first level events
0 total events(s) to be processed in batches of 100
0 event(s) executed

Triggering scheduled events
0 total events(s) to be processed in batches of 100
0 event(s) executed

Triggering ‘non-action’ events
0 event(s) executed

Triggering events for campaign 2
Triggering first level events
20 total events(s) to be processed in batches of 100
0/20 [>---------------------------] 0%
2/20 [==>-------------------------] 10%
4/20 [=====>----------------------] 20%
6/20 [========>-------------------] 30%
8/20 [===========>----------------] 40%
10/20 [==============>-------------] 50%
12/20 [================>-----------] 60%

Thanks, Rich