Age | Commit message (Collapse) | Author |
|
|
|
While waiting for a result, if the process is not alive, it returns an
error status and restarts another process to continue working.
|
|
Added JQuery to handle request.
Sends ajax request and gets json as response.
json contains token i.e uid which is answer id.
Using uid, an ajax request is sent after every 2 secs till the server
gives the desire result.
If the code result has error then html is written on the document.
If the result has correct answer then next question is displayed.
*includes function for string will not work for older browers.
Will substitute with a different function in next commit.
|
|
It should be run before ServerPool is created so the shared dictionary
works correctly.
|
|
It is now much simpler. There are no xmlrpc servers anymore instead the
tornado server takes a post request to submit a job asynchronously and
the results are added to a shared dictionary. A get request can be used
to check the status of a submitted job. This allows the submission and
checking of code to be completely async and will make the application a
lot more scalable.
|
|
|
|
- code_evaluator module and class renamed to grader
- Test cases fixed
- Comments removed
- weight variable renamed to mark
|
|
|
|
|
|
|
|
|
|
|
|
With the previous XMLRPC based server, an XMLRPC server would respond to
a request for an available port. This does not work as the server can
only take about 2 simultaneous connections. The server pool now uses a
HTTP server via tornado which works extremely well. The django code
should not change at all as this is an internal change. This change
should make the code server far more robust and work for a very large
number of simultaneous users.
The http server also has a simple status page to indicate the current
load. This will not be correct on OSX due to limitations of the
multi-processing Queue implementation on OSX.
|
|
This currently fails when multiple threads ask for a code evaluation at
the same time.
|
|
- add docstrings
- Fix further tests
|
|
|
|
- Add Test Cases to reflect refactoring changes
- Fix language registry
- Add test case for language registry
- Fix register in settings
- Keep snippet field for now
|
|
- Support for Stdout test case and Standard assertion test case
- Add MCQ Test case and support for validations
- Remove tester dir
|
|
|
|
- set_registry will only act when registry is None
- _setup, _teardown and _check_code are setup,teardown,check_code
- Corresponding name changes in evaluator modules
|
|
|
|
|