scheduler.error_handling¶
This file contains all communication from and to Learning Locker.
Module Contents¶
-
scheduler.error_handling.cron_job()¶ Run the error handling cron job.
-
scheduler.error_handling.validate_statements(since, until=None, activity=None, verb=None)¶ Validate statements using the known-statements database. Unprocessed statements are added to the Failedstatements.
- Parameters
since – String that returns statements stored after the given timestamp (exclusive).
until – String that returns statements stored before the given timestamp (inclusive). Defaults to None.
activity – String matching the statement’s object identifier. Defaults to None.
verb – String matching the statement’s verb identifier. Defaults to None.
-
scheduler.error_handling.quiz_completed(statement)¶ Get link for a user update.
- Parameters
statement – the xAPI statement
- Returns
The url location.
-
scheduler.error_handling.course_change(statement)¶ Get link for a user update.
- Parameters
statement – the xAPI statement
- Returns
The url location.
-
scheduler.error_handling.chapter_change(statement)¶ Get link for a user update.
- Parameters
statement – the xAPI statement
- Returns
The url location.
-
scheduler.error_handling.module_change(statement, link)¶ Get link for a user update.
- Parameters
statement – the xAPI statement
link – the mofa url
- Returns
The url location.
-
scheduler.error_handling.user_change(statement)¶ Get link for a user update.
- Parameters
statement – the xAPI statement
- Returns
The url location.
-
scheduler.error_handling.role_change(statement)¶ Get link for a role update.
- Parameters
statement – the xAPI statement
- Returns
The url location.
-
scheduler.error_handling.quiz_question_change(statement)¶ Get link for a quiz question update.
- Parameters
statement – the xAPI statement
- Returns
The url location.
-
scheduler.error_handling.execute_statement(statement)¶ Send a statement to the correct view.
- Parameters
statement – contains the xAPI statement
-
scheduler.error_handling.execute_statements_from_db()¶ Reprocess failed statements.
-
scheduler.error_handling.start_error_handling()¶ Start the error handling cron job to run every hour.
-
class
scheduler.error_handling.ErrorHandler¶ Stores the last operation datetime.