Description:
[grader] better status report
git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@255 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r59:4713602cf208 - - 1 file changed: 6 inserted, 3 deleted
@@ -19,8 +19,10 | |||
|
19 | 19 | submission = Submission.find(task.submission_id) |
|
20 | 20 | @engine.grade(submission) |
|
21 | 21 | task.status_complete! |
|
22 | + @grader_process.report_inactive(task) if @grader_process!=nil | |
|
23 | + else | |
|
24 | + @grader_process.report_inactive if @grader_process!=nil | |
|
22 | 25 | end |
|
23 | - # @grader_process.report_inactive if @grader_process!=nil | |
|
24 | 26 | return task |
|
25 | 27 | end |
|
26 | 28 | |
@@ -45,9 +47,10 | |||
|
45 | 47 | |
|
46 | 48 | @engine.grade(test_request) |
|
47 | 49 | test_request.status_complete! |
|
50 | + @grader_process.report_inactive(test_request) if @grader_process!=nil | |
|
51 | + else | |
|
52 | + @grader_process.report_inactive if @grader_process!=nil | |
|
48 | 53 | end |
|
49 | - | |
|
50 | - # @grader_process.report_inactive if @grader_process!=nil | |
|
51 | 54 | return test_request |
|
52 | 55 | end |
|
53 | 56 |
You need to be logged in to leave comments.
Login now