mirror of
https://github.com/linkwarden/linkwarden.git
synced 2026-06-30 07:46:13 +00:00
16 lines
467 B
TypeScript
16 lines
467 B
TypeScript
import { startIndexing } from "./workers/linkIndexing";
|
|
import { startProcessing } from "./workers/linkProcessing";
|
|
import { startRSSPolling } from "./workers/rssPolling";
|
|
|
|
const workerIntervalInSeconds =
|
|
Number(process.env.ARCHIVE_SCRIPT_INTERVAL) || 10;
|
|
|
|
async function init() {
|
|
console.log("\x1b[34m%s\x1b[0m", "Initializing the worker...");
|
|
startRSSPolling();
|
|
startProcessing(workerIntervalInSeconds);
|
|
startIndexing(workerIntervalInSeconds);
|
|
}
|
|
|
|
init();
|