Email not always triggered

So, I got this strange (at first seemingly random**) issue of a campaign not always sending the welcome email.



The campaign looks like this:

  1. form is filled in

    2a) Welcome Email is sent

    2b) If a specific page is visited after optin a tag is added to the contact.

    Visually it looks like this:

    Campaign



    Sometimes 2a (sending the welcome email) does not happen.



    ** I was able to ‘reproduce’ when it does not happen.

    So this works as expected when the following happens

    -> form is filled in

    -> Behind the scenes: the cronjob to send emails is triggerd => causing the Welcome email to be sent (2a)

    -> Afterward that cronjob the subscriber can visit the specific page so the tag is added.



    It does NOT work as expected when the following occurs

    -> form is filled in

    -> the subscriber visits the specific page BEFORE the cronjob (to send emails) is triggered.

    -> So the tag is added to the contact but the EMAIL does not get send.



    Anyone has had a similar issue? And solution.



    My current work-around is to make two campaigns.

    One that handles 2a) and another that handles 2b) with the same trigger (form submitted). It works but not ideal.



    PHP version: PHP 7.1.9 (cli)

    Mautic version: a fresh install of the latest version (2.10.0)






So, I got this strange (at first seemingly random**) issue of a campaign not always sending the welcome email.

The campaign looks like this:

  1. form is filled in
    2a) Welcome Email is sent
    2b) If a specific page is visited after optin a tag is added to the contact.
    Visually it looks like this:
    Campaign

Sometimes 2a (sending the welcome email) does not happen.

** I was able to ‘reproduce’ when it does not happen.
So this works as expected when the following happens
-> form is filled in
-> Behind the scenes: the cronjob to send emails is triggerd => causing the Welcome email to be sent (2a)
-> Afterward that cronjob the subscriber can visit the specific page so the tag is added.

It does NOT work as expected when the following occurs
-> form is filled in
-> the subscriber visits the specific page BEFORE the cronjob (to send emails) is triggered.
-> So the tag is added to the contact but the EMAIL does not get send.

Anyone has had a similar issue? And solution.

My current work-around is to make two campaigns.
One that handles 2a) and another that handles 2b) with the same trigger (form submitted). It works but not ideal.

PHP version: PHP 7.1.9 (cli)
Mautic version: a fresh install of the latest version (2.10.0)

Someone know whether this is ‘normal’ behavior?