Bridge worker updates
This commit is contained in:
parent
a445762a37
commit
f93c4ad317
33 changed files with 17584 additions and 161 deletions
26
apps/bridge-worker/lib/utils.ts
Normal file
26
apps/bridge-worker/lib/utils.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import * as Worker from "graphile-worker";
|
||||
// import { defState } from "@digiresilience/montar";
|
||||
//import config from "@digiresilience/bridge-config";
|
||||
|
||||
/*
|
||||
const startWorkerUtils = async (): Promise<Worker.WorkerUtils> => {
|
||||
const workerUtils = await Worker.makeWorkerUtils({
|
||||
connectionString: config.worker.connection,
|
||||
});
|
||||
return workerUtils;
|
||||
};
|
||||
|
||||
const stopWorkerUtils = async (): Promise<void> => {
|
||||
return workerUtils.release();
|
||||
};
|
||||
|
||||
const workerUtils = defState("workerUtils", {
|
||||
start: startWorkerUtils,
|
||||
stop: stopWorkerUtils,
|
||||
});
|
||||
|
||||
|
||||
*/
|
||||
|
||||
export const workerUtils: any = {};
|
||||
export default workerUtils;
|
||||
Loading…
Add table
Add a link
Reference in a new issue