Contacts in and out of Segments. What happens with Campaigns?

Your software
My Mautic version is: v4.4.10
My PHP version is: PHP Version 8.0.30
My Database type and version is: 10.4.34-MariaDB-1:10.4.34+maria~deb10-log

Your problem
Hello to all,

What happens if:

  1. Day 1 a contact gets a tag
  2. The contact gets into a Segment because he has the TAG
  3. A campaign is triggered because the contact is part of the segment.
  4. The campaign takes 5 days to complete
  5. Day 2 the contact losses its TAG
  6. The contact is no longer part of the Segment…

Does the campaign continues?

I hope I explained myself well greetings,
Eddie

All events after the person is removed from the segment will not be sent.

You can easily test this yourself, create a campaign with 3 events in 2 days, add 2 of your emails (have 2 contacts of yourself) in a segment, send the campaign to that segment, remove one of your contacts from the segment in day 2 and see what happens.

But, the events are triggered to contacts in the campaign contacts, if a contact is not anymore in a campaign, then he won’t get the message.

Of course that requires certain setup of cron jobs. If you run 1 or more times a day the segments update, campaign update and campaign trigger, then this is the behaviour you will get. If you are not updating segments and campaigns regularly and only triggering the campaign, then everyone will keep getting the messages or events from the campaign.

Thank you very much!