Model CicdDispatchEngine

cicd/runners::CicdDispatchEngine

Based on work/distant::DistantEngine


Parameters

↳ const api_token: Option<string> = _
↳ const api_url: Option<string> = _
↳ const location: string = "api"


Process dispatcher to spawn workers.

api_url and api_token are respectively the URI and job token to use to contact the API. If left to none the values of the current Mélodium engine will be used. location tells where job-worker should be spawned, might be one of those:

  • "api" (default): ask the API to spawn required job-worker somewhere;
  • "compose": uses podman compose or docker compose (tried is this order) to spawn locally (or as the Podman/Docker configuration specifies) the job-worker, useful to test or run on local resources.