Corrector Service is responsible for correcting the assignments that students submits. Does not provide endpoints, only Kafka Consumers and Producers.
We'd love to see community contributions. We like to keep it simple and use Github issues to track bugs and feature requests and pull requests to manage contributions.
Corrector service consumes AssignmentSubmitEvent which indicates that an assignment has submitted. After correction, publishes AssignmentCorrectionEvent and SendMailEvent.
Full list of Events can be found here.
- Configuration File: the path of configuration file
- Submission File: the path of submission file
Example:
python3 corrector.py config_path submit_path
Return value should be valid JSON string in stdout
Example:
# python3 code
return json.dumps({
'result': "The actual result",
'status': "success" | "partial-success" | "fail"
})
- Docker
- Docker Compose
$ git clone https://github.com/uomlms/corrector.git
$ cd corrector
$ docker-compose up