Skip to content

SaladTechnologies/salad-cloud-job-queue-worker

Repository files navigation

SaladCloud Job Queue Worker

License

SaladCloud Job Queues

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.

Configuration

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.

Samples

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.

Development

The following prerequisites are required:

  1. Clone the repository.

    git clone https://github.com/SaladTechnologies/salad-cloud-job-queue-worker.git
  2. Restore the dependencies.

    go mod download
    go mod verify
  3. Build the project.

    make build

The build artifacts will be available in the build directory.