How to manually trigger a campaign for testing purposes?

Your software
My Mautic version is: v4.4.10
My PHP version is: 8.0.30
My Database type and version is: MariaDB

Your problem
My problem is:

I am trying to create a campaign that contains a “Send a webhook” element.
The campaign is fed by Segment named “Test” and contains only one email.

In order to test this webhook I need to run the campaign multiple times and adjust some details if necessary. However my cron runs 4x/ hour and it is really inconvenient to wait until the next cron to run every time I want to test.

Also, because I only have one email, I am not sure if the campaign will rerun because the user is already there (I checked the option to allow users to rerun the campaign), and it is very complicated to remove the user, then add it again etc…

I don’t understand why there is no easy way to manually trigger or forcefully run a campaign ? What am I missing ?

Thank you.

Sure, run this command in your command line:

php /path to your mautic install/bin/console mautic:campaigns:trigger

Thanks, that seems like it can do!

Is there a point in doing a mautic:campaigns:update command before ?

It’s a shame this is not possible from the UI. It seems so basic.

Run your cron every minute then you dont have to wait. Its a shame to set for every 15 min.