You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
12
+
- Added config option `settings.reindexInterval` and `settings.resyncInterval` to control how often the index should be re-indexed and re-synced. ([#134](https://github.com/sourcebot-dev/sourcebot/pull/134))
Copy file name to clipboardExpand all lines: packages/backend/src/schemas/v2.ts
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,14 @@ export interface Settings {
25
25
* Automatically delete stale repositories from the index. Defaults to true.
26
26
*/
27
27
autoDeleteStaleRepos?: boolean;
28
+
/**
29
+
* The interval (in milliseconds) at which the indexer should re-index all repositories. Repositories are always indexed when first added. Defaults to 1 hour (3600000 milliseconds).
30
+
*/
31
+
reindexInterval?: number;
32
+
/**
33
+
* The interval (in milliseconds) at which the configuration file should be re-synced. The configuration file is always synced on startup. Defaults to 24 hours (86400000 milliseconds).
Copy file name to clipboardExpand all lines: schemas/v2/index.json
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -534,6 +534,18 @@
534
534
"type": "boolean",
535
535
"description": "Automatically delete stale repositories from the index. Defaults to true.",
536
536
"default": true
537
+
},
538
+
"reindexInterval": {
539
+
"type": "integer",
540
+
"description": "The interval (in milliseconds) at which the indexer should re-index all repositories. Repositories are always indexed when first added. Defaults to 1 hour (3600000 milliseconds).",
541
+
"default": 3600000,
542
+
"minimum": 1
543
+
},
544
+
"resyncInterval": {
545
+
"type": "integer",
546
+
"description": "The interval (in milliseconds) at which the configuration file should be re-synced. The configuration file is always synced on startup. Defaults to 24 hours (86400000 milliseconds).",
0 commit comments