Configuration API Reference¶
Configuration classes for Ray execution and data processing options.
dagster_ray.configs.Lifecycle
pydantic-model
¶
Bases: Config
Show JSON schema:
{
"properties": {
"create": {
"default": true,
"description": "Whether to create the resource. If set to `False`, the user can manually call `.create` instead.",
"title": "Create",
"type": "boolean"
},
"wait": {
"default": true,
"description": "Whether to wait for the remote Ray cluster to become ready to accept connections. If set to `False`, the user can manually call `.wait` instead.",
"title": "Wait",
"type": "boolean"
},
"connect": {
"default": true,
"description": "Whether to run `ray.init` against the remote Ray cluster. If set to `False`, the user can manually call `.connect` instead.",
"title": "Connect",
"type": "boolean"
},
"cleanup": {
"default": "always",
"description": "Resource cleanup policy. Determines when the resource should be deleted after Dagster step execution or during interruption.",
"enum": [
"never",
"always",
"on_exception"
],
"title": "Cleanup",
"type": "string"
}
},
"title": "Lifecycle",
"type": "object"
}
Fields:
Attributes¶
create
pydantic-field
¶
create: bool = True
Whether to create the resource. If set to False
, the user can manually call .create
instead.
wait
pydantic-field
¶
wait: bool = True
Whether to wait for the remote Ray cluster to become ready to accept connections. If set to False
, the user can manually call .wait
instead.
dagster_ray.configs.RayDataExecutionOptions
pydantic-model
¶
Bases: Config
Show JSON schema:
{
"$defs": {
"ExecutionOptionsConfig": {
"properties": {
"cpu": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Cpu"
},
"gpu": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Gpu"
},
"object_store_memory": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Object Store Memory"
}
},
"title": "ExecutionOptionsConfig",
"type": "object"
}
},
"properties": {
"execution_options": {
"$ref": "#/$defs/ExecutionOptionsConfig"
},
"cpu_limit": {
"default": 5000,
"title": "Cpu Limit",
"type": "integer"
},
"gpu_limit": {
"default": 0,
"title": "Gpu Limit",
"type": "integer"
},
"verbose_progress": {
"default": true,
"title": "Verbose Progress",
"type": "boolean"
},
"use_polars": {
"default": true,
"title": "Use Polars",
"type": "boolean"
}
},
"title": "RayDataExecutionOptions",
"type": "object"
}
Fields:
-
execution_options
(ExecutionOptionsConfig
) -
cpu_limit
(int
) -
gpu_limit
(int
) -
verbose_progress
(bool
) -
use_polars
(bool
)
Attributes¶
Functions¶
apply ¶
Source code in src/dagster_ray/configs.py
dagster_ray.configs.ExecutionOptionsConfig
pydantic-model
¶
Bases: Config
Show JSON schema:
{
"properties": {
"cpu": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Cpu"
},
"gpu": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Gpu"
},
"object_store_memory": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Object Store Memory"
}
},
"title": "ExecutionOptionsConfig",
"type": "object"
}
Fields: