Skip to content

Commit

Permalink
Merge pull request #291 from mautic/cron-jobs
Browse files Browse the repository at this point in the history
Exclude processed entities
  • Loading branch information
RCheesley authored Jun 13, 2024
2 parents 881681a + cee7e61 commit 8f56a04
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/configuration/cron_jobs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,19 @@ These commands work with all available Plugins. To avoid performance issues when
you can replace ``mautic:plugins:reload`` with ``mautic:plugins:install`` or ``mautic:plugins:update``.
They're the same commands with different alias.

Exclude processed entities
**************************

This feature is particularly useful for managing data and ensuring that entities aren't processed multiple times unnecessarily. The ``--exclude`` option prevents the specified action from re-processing entities that it has already processed.. This option is available for the ``mautic:campaigns:trigger``, ``mautic:campaigns:rebuild``, and ``mautic:segments:update`` commands.

.. code-block:: php
php /path/to/mautic/bin/console mautic:campaigns:trigger --exclude
.. note ::
This is particularly useful for scenarios where you want to avoid redundant processing of entities, such as preventing a Campaign or Segment action from executing multiple times for the same Contact.
Tips & troubleshooting
**********************

Expand Down

0 comments on commit 8f56a04

Please sign in to comment.