File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def _enrich_ray_job(
180180 runtime_env ["env_vars" ] = runtime_env .get ("env_vars" , {})
181181 runtime_env ["env_vars" ].update (env_vars )
182182
183- ray_job ["spec" ]["runtimeEnvYAML" ] = yaml .safe_dump (runtime_env )
183+ ray_job ["spec" ]["runtimeEnvYAML" ] = yaml .safe_dump (runtime_env , default_style = '"' )
184184
185185 image_from_run_tag = context .run .tags .get ("dagster/image" )
186186
Original file line number Diff line number Diff line change 33import dagster as dg
44import pytest
55import ray # noqa: TID253
6+ import yaml
67from dagster ._core .definitions .data_version import (
78 DATA_VERSION_IS_USER_PROVIDED_TAG ,
89 DATA_VERSION_TAG ,
2627 "spec" : {
2728 "activeDeadlineSeconds" : 10800 ,
2829 "entrypoint" : ENTRYPOINT ,
30+ "runtimeEnvYAML" : yaml .dump ({"env_vars" : {"FOO" : "1E-5" }}, default_style = '"' ),
2931 "entrypointNumCpus" : 0.1 ,
3032 "rayClusterSpec" : {
3133 "autoscalerOptions" : {
You can’t perform that action at this time.
0 commit comments