mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 04:45:19 +00:00
* add gc queue logic * fix missing switch cases for gc status * style org create form better with new staging domain * change repo rm logic to be async * simplify repo for inactive org query * add grace period for garbage collecting repos * make prom scrape interval 500ms
15 lines
No EOL
445 B
TypeScript
15 lines
No EOL
445 B
TypeScript
import { Settings } from "./types.js";
|
|
|
|
/**
|
|
* Default settings.
|
|
*/
|
|
export const DEFAULT_SETTINGS: Settings = {
|
|
maxFileSize: 2 * 1024 * 1024, // 2MB in bytes
|
|
reindexIntervalMs: 1000 * 60 * 60, // 1 hour
|
|
resyncConnectionPollingIntervalMs: 1000,
|
|
reindexRepoPollingIntervalMs: 1000,
|
|
indexConcurrencyMultiple: 3,
|
|
configSyncConcurrencyMultiple: 3,
|
|
gcConcurrencyMultiple: 1,
|
|
gcGracePeriodMs: 10 * 1000, // 10 seconds
|
|
} |