Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions source/educators/concepts/exercise_tools/about_external_graders.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ About External Grader Problems
An external grader is a service that receives learner responses to a
problem, processes those responses, and returns feedback and a problem
grade to the platform. Course teams build and deploy a grader on an
external platform, such as Amazon Web Services (AWS) or Azure, and then
link their external grader to the platform using an interface called
XQueue. XQueue is a Representational State Transfer (RESTful) interface
that uses JavaScript Object Notation (JSON) objects.
external platform, such as Amazon Web Services (AWS) or Azure, and the
grader connects to the LMS through an interface called XQueue. XQueue is a
Representational State Transfer (RESTful) interface that uses JavaScript
Object Notation (JSON) objects. `xqueue-watcher`_ is the maintained grader
that implements that interface.

For more information, see the following sections.

Expand All @@ -24,20 +25,20 @@ For more information, see the following sections.
External Grader Workflow
************************

XQueue uses the following workflow for external grader problems.
External grader problems use the following workflow.

#. In the learning management system (LMS), the learner either enters code or
attaches a file for a problem, then selects **Submit**.
#. The LMS sends the learner's code to XQueue.
#. The external grader actively retrieves, or pulls, the code from XQueue.
#. The LMS places the submission in the queue named by the problem.
#. The external grader actively retrieves, or pulls, the submission from the
LMS.
#. The external grader runs the tests that you created on the code.
#. The external grader returns the grade for the submission, as well as any
messaging in a JSON, to XQueue.
#. The XQueue delivers the results to the LMS.
messaging in a JSON document, to the LMS.
#. In the LMS, the learner sees the problem results and the grade.

For the code for the XQueue interface, see the ``urls.py`` file in the `Open
edX XQueue repository`_.
Your site operations team runs the grader and tells you the queue name to use
in your problems. For the interface, see :ref:`XQueue Reference`.

.. _External Grader Example:

Expand Down Expand Up @@ -75,6 +76,9 @@ Your site operations team :ref:`builds and deploys the external grader <Enable X

:ref:`Enable XQueue` (site operators how-to)

:ref:`XQueue Reference` (site operators reference)

.. _xqueue-watcher: https://github.com/openedx/xqueue-watcher

**Maintenance chart**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ The OLX definition of a problem contains the following information.
* ``<filesubmission>``: The learner attaches and submits a code file in the
unit.

* (optional) An element that contains a JSON object that you send to the
external grader. For example, you can use the ``<grader_payload>`` element to
tell the grader which tests to run for a problem.
* A ``<grader_payload>`` element that contains a JSON object. Its ``grader``
key names the grader file, relative to the grader's root directory, that
runs for this problem. Three optional keys control xqueue-watcher's built-in
graders: ``skip_grader`` gives every submission full credit without running
the grader, ``hide_output`` hides the per-test output from the learner, and
``lang`` picks the language of the grader's feedback. No other keys reach
the grader, and before Willow only ``grader`` does. To give problems
different tests or expected output, give each problem its own grader file.

The following example shows the OLX definition of a problem that uses an
external grader.
Expand All @@ -77,7 +82,7 @@ external grader.
print "hello world"
</answer_display>
<grader_payload>
{"output": "hello world", "max_length": 2}
{"grader": "hello_world/grade.py"}
</grader_payload>
</codeparam>
</coderesponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ settings to the right of the problem editor after clicking
**Show advanced settings**.

The Advanced Editor retains several settings from the simple editor such as
**Scoring**, **Show answer**, **Show reset option**, **Time between attempts**
and **MATLAB API Key** as well as introduces the **Randomization** setting.
**Scoring**, **Show answer**, **Show reset option** and **Time between attempts**
as well as introduces the **Randomization** setting.
While the other settings are not shown on the collapsible panes to the right of
the problem editor, they can be added via editing the OLX.

Expand Down
1 change: 0 additions & 1 deletion source/links.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@

.. _12 Principles of Multimedia Learning: http://hartford.edu/academics/faculty/fcld/data/documentation/technology/presentation/powerpoint/12_principles_multimedia.pdf

.. _Open edX XQueue repository: https://github.com/openedx/xqueue/tree/master/xqueue

.. _GnuPG website: https://www.gnupg.org

Expand Down
Loading