csivitu / code-executor

A CLI/library to execute code against test cases in various languages and obtain relevant results. :rocket:
https://www.npmjs.com/package/code-executor
MIT License
16 stars 2 forks source link

feat: Implemented Master and Worker modules #7

Closed ashikka closed 4 years ago

ashikka commented 4 years ago

CodeExecutor: A master class that manages the addition of jobs to the queue.

Worker: Any number of workers can be initialized, they take up jobs from the queue and returns the output to the master.

Builder: builds all the containers, it's used as a module in workers.

Runner: takes jab data from the worker, runs the job, and returns output to the worker.

An example implementation can be found in the examples folder.