Skip to content

Commit

Permalink
docs: add note about triggering only when facts happen
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Dec 20, 2024
1 parent f8d1497 commit e30b79f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/how-tos/create-a-new-event.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ Here is how the integration could look like:
.. note:: Ensure that the event is triggered consistently and only when the event should be triggered. Avoid triggering the event multiple times for the same event unless necessary, e.g., when there is no other way to ensure that the event is triggered consistently.

.. note:: Try placing the event after the triggering logic to ensure that the event is triggered only when the triggering logic completes successfully. This will help ensure that the event is triggered only for factual events if the triggering logic fails, the event should not be triggered.

Step 7: Test the Event
~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit e30b79f

Please sign in to comment.