mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:51:50 +00:00
This PR moves the changelist mapper to be a proper worker job and be monitored by the usual worker monitoring. It also makes use of well-tested gitserver APIs instead of running git commands itself. This also moves from a reactive system that purely resides in memory to a system that occasionally makes sure all perforce depots are properly mapped. This should be slightly more DB queries to find the depots that have a change, but it shouldn't be a huge burden, and this is another good indicator that events can be useful :) Test plan: I've added some "integration-ish" tests, and ran it locally to verify that it works. It will be good to also implement an integration test, once we have the tools for that. |
||
|---|---|---|
| .. | ||
| internal | ||
| job | ||
| shared | ||
| BUILD.bazel | ||
| CODENOTIFY | ||
| image_test.yaml | ||
| main.go | ||
| README.md | ||
Worker
The worker service is a collection of the background jobs performed by a Sourcegraph instance. Jobs registered to the worker will run periodically or in response to some event read from the database.