go-exercises-worker, v1.1.1
Posted on

Background worker of the service for solving programming exercises.
Generating of the custom message ID on producing of the solution results, and canceling the code compiling by a timeout in the solution runner based on the github.com/thewizardplusplus/go-code-runner package.
Change Log
- dependencies:
- update the github.com/thewizardplusplus/go-code-runner package;
- use the github.com/thewizardplusplus/go-rabbitmq-utils package;
- producing of the solution results:
- generating of the custom message ID;
- cover the code with unit tests;
- solution runners:
- remove the dummy solution runner;
- solution runner based on the github.com/thewizardplusplus/go-code-runner package:
- canceling the code compiling by a timeout;
- cover the code with unit tests.
Features
- interaction with queues:
- common properties:
- automatic declaring of the used queues;
- passing of a message data in JSON;
- operations:
- consuming of the solutions:
- concurrent handling;
- once requeue the solution on failure;
- producing of the solution results:
- generating of the custom message ID;
- consuming of the solutions:
- common properties:
- solution runners:
- solution runner based on the github.com/thewizardplusplus/go-code-runner package:
- loading of the allowed imports from an outer configuration;
- canceling by a timeout:
- code compiling;
- code execution.
- solution runner based on the github.com/thewizardplusplus/go-code-runner package:
Repository
Link: https://github.com/thewizardplusplus/go-exercises-worker/tree/v1.1.1.
Content: code.
License: MIT.