Refactor backend
This commit is contained in:
parent
fd497c0e23
commit
7027feb8ac
20 changed files with 75 additions and 369 deletions
|
@ -1,5 +1,5 @@
|
|||
import Rabbiteer from "rabbiteer";
|
||||
import getWorkers from "./workers/index.js";
|
||||
import buildWorkers from "./workers/index.js";
|
||||
|
||||
// Pull Environment Variables
|
||||
const { RABBIT_HOST: host, RABBIT_USER: user, RABBIT_PASS: pass } = process.env;
|
||||
|
@ -11,7 +11,7 @@ const rabbitConfig = {
|
|||
pass: pass ?? "rabbit",
|
||||
};
|
||||
|
||||
const getRabbiteer = (skio) =>
|
||||
new Rabbiteer(null, getWorkers(skio), { autoRabbit: rabbitConfig });
|
||||
const buildRabbiteer = (skio) =>
|
||||
new Rabbiteer(null, buildWorkers(skio), { autoRabbit: rabbitConfig });
|
||||
|
||||
export default getRabbiteer;
|
||||
export default buildRabbiteer;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import TestResultsWorker from "./TestResultsWorker.js";
|
||||
|
||||
const getWorkers = (skio) => [new TestResultsWorker(skio)];
|
||||
export default getWorkers;
|
||||
const buildWorkers = (skio) => [new TestResultsWorker(skio)];
|
||||
export default buildWorkers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue