mirror of
https://github.com/linkwarden/linkwarden.git
synced 2026-06-28 14:55:49 +00:00
23 lines
771 B
TypeScript
23 lines
771 B
TypeScript
import { autoTagPreservedLinks } from "./workers/autoTagPreservedLinks";
|
|
import { startIndexing } from "./workers/linkIndexing";
|
|
import { linkProcessing } from "./workers/linkProcessing";
|
|
import { migrationWorker } from "./workers/migrationWorker";
|
|
import { startRSSPolling } from "./workers/rssPolling";
|
|
import { trialEndEmailWorker } from "./workers/trialEndEmailWorker";
|
|
|
|
const workerIntervalInSeconds =
|
|
Number(process.env.ARCHIVE_SCRIPT_INTERVAL) || 10;
|
|
|
|
async function init() {
|
|
await migrationWorker();
|
|
|
|
console.log("\x1b[34m%s\x1b[0m", "Initializing the worker...");
|
|
startRSSPolling();
|
|
linkProcessing(workerIntervalInSeconds);
|
|
autoTagPreservedLinks(workerIntervalInSeconds);
|
|
startIndexing(workerIntervalInSeconds);
|
|
trialEndEmailWorker();
|
|
}
|
|
|
|
init();
|