23 lines
757 B
JavaScript
23 lines
757 B
JavaScript
"use strict";
|
|
/**
|
|
* Bet queue worker — consumes Redis Stream jobs and executes placeBetInternal.
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const appBootstrap_1 = require("../bootstrap/appBootstrap");
|
|
const betConsumer_1 = require("../realtime/streams/betConsumer");
|
|
async function main() {
|
|
await (0, appBootstrap_1.bootstrapCore)({
|
|
startEngines: false,
|
|
startPlatformMonitors: false,
|
|
runDevMigrations: false,
|
|
});
|
|
await (0, betConsumer_1.startBetWorkerLoop)();
|
|
}
|
|
main().catch((e) => {
|
|
console.error(e);
|
|
process.exit(1);
|
|
});
|
|
process.on('unhandledRejection', (reason) => {
|
|
console.error('[worker-bets] Unhandled promise rejection:', reason);
|
|
});
|
|
//# sourceMappingURL=worker-bets.js.map
|