Skip to content

Commit

Permalink
update notication config docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Oct 7, 2023
1 parent c5dafba commit 2e7f315
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions docs/source/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ they are optional and which default value or operation is applied in each situat
|
| Defines configuration of email notification functionality on :term:`Job` status milestones.
|
| Encryption settings as well as custom email templates are available.
Default email template defined in `email-template`_ is employed if none is provided or when specified template
file or directory cannot be resolved.
| Encryption settings as well as custom email template locations are available.
The |default-notify-email-template|_ is employed if none is provided or when specified template
files or directory cannot be resolved.
|
| When looking up for templates within ``weaver.wps_email_notify_template_dir``, the following resolution order is
followed to attempt matching files. The first one that is found will be employed for the notification email.
Expand All @@ -241,10 +241,11 @@ they are optional and which default value or operation is applied in each situat
| 2. file ``{TEMPLATE_DIR}/{PROCESS_ID}.mako`` used for a specific :term:`Process` but any :term:`Job` status
| 3. file ``{TEMPLATE_DIR}/{weaver.wps_email_notify_template_default}`` used for any combination if specified
| 4. file ``{TEMPLATE_DIR}/default.mako`` used for any combination if an alternate default name was not specified
| 5. file `email-template`_ by default as last resort
| 5. file |default-notify-email-template|_ as last resort
|
| Email notifications are sent only when corresponding :term:`Job` status milestones are reached and when
email(s) were provided in the :ref:`Execute <proc_op_execute>` request body.
email(s) were provided in the :ref:`Execute <proc_op_execute>` request body. Emails will not be sent if
the request body did not include a subscription to those notifications, even if the templates were configured.
.. seealso::
See :ref:`Notification Subscribers <proc_op_execute_subscribers>` for more details.
Expand Down
3 changes: 2 additions & 1 deletion docs/source/references.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@
.. _request_options.yml.example: ../../../config/request_options.yml.example
.. _Dockerfile-manager: ../../../docker/Dockerfile-manager
.. _Dockerfile-worker: ../../../docker/Dockerfile-worker
.. _email-template: ../../../weaver/wps_restapi/templates/notification_email_example.mako
.. _default-notify-email-template: ../../../weaver/wps_restapi/templates/notification_email_example.mako
.. |default-notify-email-template| replace:: Default Notification Email Mako Template
.. |opensearch-deploy| replace:: OpenSearch Deploy
.. _opensearch-deploy: ../../../tests/opensearch/json/opensearch_deploy.json
.. |opensearch-examples| replace:: OpenSearch Examples
Expand Down

0 comments on commit 2e7f315

Please sign in to comment.