sourcegraph/cmd/executor
Erik Seliger 4608be4136
Move executor to cmd/executor (#55700)
This is a mechanical move to get the executor out of the enterprise/cmd
directory. Eventually, this directory should disappear, this is another
step towards that.

This does not change anything about how it's licensed.

## Test plan

CI is still passing, local executor starts up.
2023-08-10 02:06:12 +02:00
..
docker-mirror Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
internal Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
kubernetes Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
shared Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
singlebinary Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
vm-image Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
build_binary.sh Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
BUILD.bazel Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
CODENOTIFY Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
hash.sh Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
image_test.yaml Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
main.go Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
README.md Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00
release_binary.sh Move executor to cmd/executor (#55700) 2023-08-10 02:06:12 +02:00

Executor

The executor service polls the public frontend API for work to perform. The executor will pull a job from a particular queue (configured via the envvar EXECUTOR_QUEUE_NAME), then performs the job by running a sequence of docker and src-cli commands. This service is horizontally scalable.

Since executors and Sourcegraph are separate deployments, our agreement is to support 1 minor version divergence for now. See this example for more details:

Sourcegraph version Executor version Ok
3.43.0 3.43.*
3.43.3 3.43.*
3.43.0 3.44.*
3.43.0 3.42.*
3.43.0 3.41.* 🚫
3.43.0 3.45.* 🚫

See the executor queue for a complete list of queues.