For a given grading job, when the worker runs it in the container and needs to push the results to a URL for a server that is also running in a container, then due to the nature of Docker container networking, the response cannot be sent to a localhost URL, but instead a URL of host <container_name>. This mainly applies for local development when sending job results to the echo server provided in grading-vm/.
Solution (Changes Made)
Update data definition in documentation.
Update do_grading to reflect use of secondary URL.
Update JSONSchema to reflect new optional field when running validations.
Feature/Problem Description
For a given grading job, when the worker runs it in the container and needs to push the results to a URL for a server that is also running in a container, then due to the nature of Docker container networking, the response cannot be sent to a
localhost
URL, but instead a URL of host<container_name>
. This mainly applies for local development when sending job results to the echo server provided ingrading-vm/
.Solution (Changes Made)
do_grading
to reflect use of secondary URL.