aboutsummaryrefslogtreecommitdiffstats
path: root/packages/workers/index.ts
blob: 67be7af2ffef6d495e124184f79b6cb1d6cf26cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import "dotenv/config";
import { CrawlerWorker } from "./crawler";
import { OpenAiWorker } from "./openai";

async function main() {
  const [crawler, openai] = [
    await CrawlerWorker.build(),
    await OpenAiWorker.build(),
  ];

  await Promise.all([crawler.run(), openai.run()]);
}

main();