|
| 1 | +.. _ora-reminder-notifications: |
| 2 | + |
| 3 | +ORA Reminder Notifications |
| 4 | +########################## |
| 5 | + |
| 6 | +.. tags:: site operator, how-to |
| 7 | + |
| 8 | +ORA reminders send periodic nudges to learners who have submitted a response |
| 9 | +but have not yet completed their required **peer** or **self** review steps. |
| 10 | + |
| 11 | +Enabling |
| 12 | +******** |
| 13 | + |
| 14 | +Set ``ENABLE_ORA_REMINDERS`` to ``True`` in your Django settings: |
| 15 | + |
| 16 | +.. code-block:: python |
| 17 | +
|
| 18 | + ENABLE_ORA_REMINDERS = True |
| 19 | +
|
| 20 | +The notification type ``ora_reminder`` must also be registered in openedx-platform's |
| 21 | +``openedx.core.djangoapps.notifications.base_notification`` (already included |
| 22 | +starting with Verawood release). |
| 23 | + |
| 24 | +Configuration Settings |
| 25 | +********************** |
| 26 | + |
| 27 | +All settings have sensible defaults and only need to be overridden when you |
| 28 | +want non-default behaviour. |
| 29 | + |
| 30 | +.. list-table:: |
| 31 | + :header-rows: 1 |
| 32 | + :widths: 35 10 55 |
| 33 | + |
| 34 | + * - Setting |
| 35 | + - Default |
| 36 | + - Description |
| 37 | + * - ``ORA_REMINDER_INITIAL_DELAY_HOURS`` |
| 38 | + - ``0`` |
| 39 | + - Hours after submission before the **first** reminder is sent. Gives |
| 40 | + learners time to complete reviews on their own before being nudged. |
| 41 | + * - ``ORA_REMINDER_INTERVAL_HOURS`` |
| 42 | + - ``48`` |
| 43 | + - Hours between consecutive reminders after the first one. |
| 44 | + * - ``ORA_REMINDER_MAX_COUNT`` |
| 45 | + - ``3`` |
| 46 | + - Maximum number of reminders sent per learner per ORA submission. |
| 47 | + Once this limit is reached the reminder row is deactivated. |
| 48 | + * - ``ORA_REMINDER_SWEEP_INTERVAL_SECONDS`` |
| 49 | + - ``1800`` |
| 50 | + - How often (in seconds) the sweeper re-schedules itself. Each run |
| 51 | + processes all rows whose ``next_reminder_at`` has passed. |
| 52 | + * - ``ORA_REMINDER_SWEEP_BATCH_SIZE`` |
| 53 | + - ``1000`` |
| 54 | + - Maximum rows processed per sweep cycle. If more rows are due they |
| 55 | + will be picked up on the next sweep. Rows are ordered oldest-first so |
| 56 | + no reminder is permanently skipped. Increase this value for deployments |
| 57 | + with a large number of concurrent active learners. |
| 58 | + * - ``ORA_REMINDER_CHECK_AGAIN_HOURS`` |
| 59 | + - ``12`` |
| 60 | + - Hours to wait before re-checking when a peer-step reminder is due |
| 61 | + but no peer submissions are available for the learner to review yet. |
| 62 | + Prevents sending useless reminders to very early submitters. |
| 63 | + |
| 64 | +To override these settings, create a Tutor plugin that patches the LMS |
| 65 | +settings using the ``openedx-lms-common-settings`` |
| 66 | +`patch <https://docs.tutor.edly.io/reference/patches/index.html>`_, |
| 67 | +which applies to both production and development environments. |
| 68 | + |
| 69 | +For example, create a file ``ora_reminders_plugin.py``: |
| 70 | + |
| 71 | +.. code-block:: python |
| 72 | +
|
| 73 | + from tutor import hooks |
| 74 | +
|
| 75 | + hooks.Filters.ENV_PATCHES.add_item(( |
| 76 | + "openedx-lms-common-settings", |
| 77 | + """ |
| 78 | + ORA_REMINDER_INITIAL_DELAY_HOURS = 48 |
| 79 | + ORA_REMINDER_INTERVAL_HOURS = 72 |
| 80 | + ORA_REMINDER_MAX_COUNT = 2 |
| 81 | + """ |
| 82 | + )) |
| 83 | +
|
| 84 | +Then install and enable it in your Tutor environment, according to the `Tutor documentation <https://docs.tutor.edly.io/reference/patches/index.html>`_. |
| 85 | + |
| 86 | + |
| 87 | +**Maintenance chart** |
| 88 | + |
| 89 | ++--------------+-------------------------------+----------------+--------------------------------+ |
| 90 | +| Review Date | Reviewer | Release |Test situation | |
| 91 | ++--------------+-------------------------------+----------------+--------------------------------+ |
| 92 | +| 2026-05-05 | Ahtisham Shahid | Verawood | Pass | |
| 93 | ++--------------+-------------------------------+----------------+--------------------------------+ |
0 commit comments