Manage ML algorithm jobs
Manage ML algorithm jobs
$ snd algorithm run --algorithm store-auto-replenishment-crystal-orchestrator --payload ./crystal-payload.json
$ snd algorithm get --id fa1d02af-c294-4bf6-989f-1234 --algorithm store-auto-replenishment-crystal-orchestrator
$ snd algorithm payload --id fa1d02af-c294-4bf6-989f-1234 --algorithm store-auto-replenishment-crystal-orchestrator
$ snd algorithm cancel --id fa1d02af-c294-4bf6-989f-1234 --algorithm store-auto-replenishment-crystal-orchestrator --initiator [email protected] --reason test
--algorithm string Specify the algorithm name
-a, --auth-provider string Specify the OAuth provider name (default "azuread")
--custom-auth-url string Specify the auth service uri
--custom-service-url string Specify the service url (default "https://crystal.%s.sneaksanddata.com")
-e, --env string Target environment (default "awsd")
-h, --help help for algorithm
--gen-docs Generate Markdown documentation for all commands
- snd - SnD CLI
- snd algorithm cancel - Cancel a ML Algorithm run
- snd algorithm get - Get the result for a ML Algorithm run
- snd algorithm payload - Get the payload for a ML Algorithm run
- snd algorithm run - Run a ML Algorithm.
The payload should be provided as a JSON file with the structure below.
{
"algorithm_name": "<string> (optional) - The name of the algorithm to run",
"algorithm_parameters": "<object> (required) - Any additional parameters for the algorithm",
"custom_configuration": {
"image_repository": <string>,
"image_tag": <string>,
"deadline_seconds": <int>,
"maximum_retries": <int>,
"env": {"name": <string>, "value": <string>, "value_from": "PLAIN" | "RELATIVE_REFERENCE"}
"secrets": <string[]>,
"args": {"name": <string>, "value": <string>, "value_from": "PLAIN" | "RELATIVE_REFERENCE"},
"cpu_limit": <string>,
"memory_limit": <string>,
"workgroup": <string>,
"additional_workgroups": <map[string]string>,
"version": <string>,
"monitoring_parameters": <string[]>,
"custom_resources": <map[string]string>,
"speculative_attempts": int
} - <CustomConfiguration> (optional) - Custom configuration for the algorithm",
"tag": "<string> (optional) - Client-side submission identifier"
}