sourcegraph/cmd
Erik Seliger 03c05e5fda
repo-updater: Hydrate schedule on startup (#62891)
Currently, when repo-updater restarts it loses all intel it collected over time. That causes a large flood of git fetch requests after it restarts. Every repo will be enqueued for an immediate update.

This PR fixes that by populating the scheduler with an initial delay per repo that is calculated with the same heuristic that the scheduler uses when it's fully warmed up.

This should avoid fetching git repos that are very stale (most likely the majority on instances with many repos).

Test plan:

Ran it locally, verified the scheduler state using the instrumentation tool for it, the schedule looks as expected and most repos aren't scheduled for the next 8h.
2024-06-04 19:00:23 +02:00
..
appliance appliance: split reconciler package into subpackage (#62730) 2024-05-20 16:53:14 +01:00
batcheshelper bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
blobstore bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
bundled-executor bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
cody-gateway feat(cody-gateway): Add FLAGGED_MODEL_NAMES check (#63013) 2024-05-31 20:12:27 +00:00
embeddings lib/background: upgrade Routine interface with context and errors (#62136) 2024-05-24 10:04:55 -04:00
enterprise-portal fix/enterpriseportal: fix registration of connectRPC handler options (#63058) 2024-06-04 09:00:01 -07:00
executor lib/background: upgrade Routine interface with context and errors (#62136) 2024-05-24 10:04:55 -04:00
executor-kubernetes bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
frontend Cody Gateway: remove feature flag requirement for Gemini models (#63055) 2024-06-04 07:15:35 -07:00
gitserver gitserver: Remove IsCloneable check from clone path (#63028) 2024-06-03 16:37:11 +02:00
loadtest chore(bazel): update ownership tags to increase coverage (#63001) 2024-05-31 14:10:29 +00:00
migrator bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
msp-example chore/msp-example: refactor to align with service structure best practices (#62954) 2024-05-29 09:58:43 -07:00
pings bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
precise-code-intel-worker lib/background: upgrade Routine interface with context and errors (#62136) 2024-05-24 10:04:55 -04:00
repo-updater repo-updater: Hydrate schedule on startup (#62891) 2024-06-04 19:00:23 +02:00
searcher bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
server feat/bazel: //cmd/{frontend,server} targets that don't include client bundle for backend integration tests (#62877) 2024-05-28 14:32:48 +01:00
symbols chore: Delete old Dockerfile and build scripts (#62922) 2024-05-27 18:52:39 +02:00
syntactic-code-intel-worker Syntactic indexing: enqueuer and scheduler (#62485) 2024-05-31 10:25:30 +01:00
telemetry-gateway lib/background: upgrade Routine interface with context and errors (#62136) 2024-05-24 10:04:55 -04:00
worker worker: add SAMS notifications subscriber (#63051) 2024-06-03 18:01:19 -04:00
README.md Reminder to keep architecture diagram in-sync (#36869) 2022-06-08 19:40:36 -07:00

This directory contains Sourcegraph services and binaries.

When a services is added, removed, or when a service's dependencies change, update our architecture diagram.