mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 12:25:22 +00:00
add config upsert timeout env var
This commit is contained in:
parent
e17331a672
commit
e09b21f6b9
2 changed files with 4 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import { createLogger } from "./logger.js";
|
|||
import os from 'os';
|
||||
import { Redis } from 'ioredis';
|
||||
import { RepoData, compileGithubConfig, compileGitlabConfig, compileGiteaConfig, compileGerritConfig } from "./repoCompileUtils.js";
|
||||
import { CONFIG_REPO_UPSERT_TIMEOUT_MS } from "./environment.js";
|
||||
|
||||
interface IConnectionManager {
|
||||
scheduleConnectionSync: (connection: Connection) => Promise<void>;
|
||||
|
|
@ -136,7 +137,7 @@ export class ConnectionManager implements IConnectionManager {
|
|||
});
|
||||
}));
|
||||
|
||||
});
|
||||
}, { timeout: parseInt(CONFIG_REPO_UPSERT_TIMEOUT_MS) });
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -35,4 +35,6 @@ export const FALLBACK_GITHUB_TOKEN = getEnv(process.env.FALLBACK_GITHUB_TOKEN);
|
|||
export const FALLBACK_GITLAB_TOKEN = getEnv(process.env.FALLBACK_GITLAB_TOKEN);
|
||||
export const FALLBACK_GITEA_TOKEN = getEnv(process.env.FALLBACK_GITEA_TOKEN);
|
||||
|
||||
export const CONFIG_REPO_UPSERT_TIMEOUT_MS = getEnv(process.env.CONFIG_REPO_UPSERT_TIMEOUT_MS, '15000')!;
|
||||
|
||||
export const INDEX_CONCURRENCY_MULTIPLE = getEnv(process.env.INDEX_CONCURRENCY_MULTIPLE);
|
||||
Loading…
Reference in a new issue