Skip to content

Commit

Permalink
Add docs for range mode
Browse files Browse the repository at this point in the history
  • Loading branch information
RCheesley committed Apr 16, 2024
1 parent 73019a9 commit 190b756
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/configuration/cron_jobs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,15 @@ If the Mautic configuration settings include Webhook batch processing, use the f
php /path/to/mautic/bin/console mautic:webhooks:process
Since Mautic 5.1 it's also possible to run the Webhooks cron job in 'range mode'. This allows you to specify a range of Webhook events to process in a single run. This can be useful if you have a large number of Webhook events to process and want to avoid running out of memory.

To use this mode, you can specify the ``--min-id`` and ``--max-id`` options. For example, to process events for a Webhook with ID of 5, you can specify to only process the events for that Webhook with IDs between 1000 and 2000 using the following command:

.. code-block:: bash
bin/console mautic:webhooks:process --webhook-id=5 --min-id=1000 --max-id=2000
.. _cron jobs:

.. vale off
Expand Down

0 comments on commit 190b756

Please sign in to comment.