dioptra-worker-v1 Reference#
dioptra-worker-v1 is the command that starts a Dioptra worker process.
It is provided by the dioptra-platform Python package and wraps the RQ worker CLI.
The process polls a Redis queue for jobs submitted through the Dioptra REST API and executes them.
Table of Contents
Environment Variables#
Required#
The process checks for these variables at startup and exits immediately if any are missing.
Variable |
Description |
|---|---|
|
MLflow tracking server URL (consumed natively by MLflow). |
|
S3-compatible endpoint URL for artifact storage (consumed natively by MLflow). |
|
Dioptra REST API base URL. |
|
Username for worker authentication with the REST API. |
|
Password for worker authentication with the REST API. |
Optional#
Variable |
Description |
|---|---|
|
Enable JSON-formatted log output. Unset by default (disabled). |
|
Logging level ( |
Command-Line Arguments#
dioptra-worker-v1 accepts the same arguments as the rq worker command.
The two relevant arguments for starting a worker are:
-u, --url <redis-uri>URL describing the Redis connection (e.g.,
redis://localhost:6379/0). Defaults toredis://localhost:6379/0if not provided.QUEUESOne or more queue names to poll, passed as positional arguments. At least one queue name is required.
Usage#
dioptra-worker-v1 --url redis://localhost:6379/0 tensorflow-cpu
See Also#
Worker Container Requirements Reference – Container-level requirements for deploying a worker
Custom Worker Template Reference – Cookiecutter template that wraps this command in an entrypoint script