This project contains the SaladCloud Job Queue Worker, SDK, and samples. Refer to the Job Queues documentation for more information on using this with your SaladCloud-deployed workloads.
The SaladCloud Job Queue Worker automatically discovers the appropriate service endpoints when running on SaladCloud and no additional configuration is required.
The SaladCloud Job Queue Worker, by default, only prints error level log lines to minimize any potential noise in your workload logs. You may optionally override the log level to print more detailed log lines for monitoring or troubleshooting purposes. The default log level may be overridden using the SALAD_LOG_LEVEL
environment variable. Valid values are debug
, info
, warn
, and error
. The SaladCloud Job Queue Worker will exit on startup if an invalid value is provided.
See the Mandelbrot workload sample in the samples/mandelbrot
directory for examples of different strategies that may be used to embed and run the SaladCloud Job Queue Worker in an existing workload container image.
The following prerequisites are required:
- Visual Studio Code
- Git
- Go (version 1.21.0 or higher)
- golangci-lint
- Buf (version 1.32.0 or higher)
- protoc-gen-go, the Google protocol buffer compiler for Go
- protoc-gen-go-grpc, the gRPC service binding compiler for Go
-
Clone the repository.
git clone https://github.com/SaladTechnologies/salad-cloud-job-queue-worker.git
-
Restore the dependencies.
go mod download go mod verify
-
Build the project.
make build
The build artifacts will be available in the build
directory.