Commit d761cc07 by David Ormsbee

Added LTI_AGGREGATE_SCORE_PASSBACK_DELAY, default of 15 mins (900s).

An aggregate score is one derived from multiple problems (such as the
cumulative score for a vertical element containing many problems). Sending
aggregate scores immediately introduces two issues: one is a race condition
between the view method and the Celery task where the updated score may not
yet be visible to the database if the view has not yet returned (and committed
its transaction). The other is that the student is likely to receive a stream
of notifications as the score is updated with every problem. Waiting a
reasonable period of time allows the view transaction to end, and allows us to
collapse multiple score updates into a single message.

The time value is in seconds.
parent cbfc9a39
......@@ -96,6 +96,8 @@ EDXAPP_OEE_PASSWORD: 'password'
EDXAPP_ANALYTICS_API_KEY: ""
EDXAPP_LTI_USER_EMAIL_DOMAIN: "lti.example.com"
# 900s, or 15 mins
EDXAPP_LTI_AGGREGATE_SCORE_PASSBACK_DELAY: 900
EDXAPP_PAYMENT_SUPPORT_EMAIL: "billing@example.com"
EDXAPP_YOUTUBE_API_KEY: "PUT_YOUR_API_KEY_HERE"
EDXAPP_ZENDESK_USER: ""
......@@ -887,6 +889,7 @@ lms_env_config:
EDXNOTES_PUBLIC_API: "{{ EDXAPP_EDXNOTES_PUBLIC_API }}"
EDXNOTES_INTERNAL_API: "{{ EDXAPP_EDXNOTES_INTERNAL_API }}"
LTI_USER_EMAIL_DOMAIN: "{{ EDXAPP_LTI_USER_EMAIL_DOMAIN }}"
LTI_AGGREGATE_SCORE_PASSBACK_DELAY: "{{ EDXAPP_LTI_AGGREGATE_SCORE_PASSBACK_DELAY }}"
PROCTORING_SETTINGS: "{{ EDXAPP_PROCTORING_SETTINGS }}"
CREDIT_HELP_LINK_URL: "{{ EDXAPP_CREDIT_HELP_LINK_URL }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment