Scaffold monorepo dev setup
This commit is contained in:
commit
d2a09e095a
47 changed files with 1033 additions and 0 deletions
17
services/ingest-equities/src/index.ts
Normal file
17
services/ingest-equities/src/index.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { createLogger } from "@islandflow/observability";
|
||||
|
||||
const service = "ingest-equities";
|
||||
const logger = createLogger({ service });
|
||||
|
||||
logger.info("service starting");
|
||||
|
||||
const shutdown = (signal: string) => {
|
||||
logger.info("service stopping", { signal });
|
||||
process.exit(0);
|
||||
};
|
||||
|
||||
process.on("SIGINT", () => shutdown("SIGINT"));
|
||||
process.on("SIGTERM", () => shutdown("SIGTERM"));
|
||||
|
||||
// Keep the process alive until real listeners are wired.
|
||||
setInterval(() => {}, 60_000);
|
||||
Loading…
Add table
Add a link
Reference in a new issue