Skip to content

Commit

Permalink
fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
akihikokuroda committed Nov 8, 2023
1 parent 20991dc commit b07ced0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ data:
{{- end }}
affinity:
containers:
- image: {{ .Values.application.ray.nodeImage | quote }}
- image: {{`{{ node_image }}`| quote }}
imagePullPolicy: IfNotPresent
name: ray-head
ports:
Expand Down Expand Up @@ -300,7 +300,7 @@ data:
- name: OT_ENABLED
value: {{ .Values.application.ray.openTelemetryCollector.enabled | quote }}
{{- end }}
image: {{ .Values.application.ray.nodeImage | quote}}
image: {{`{{ node_image }}`| quote}}
imagePullPolicy: IfNotPresent
name: ray-worker
resources:
Expand Down
2 changes: 2 additions & 0 deletions gateway/api/ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ def create_ray_cluster(
job_config.max_workers = settings.RAY_CLUSTER_WORKER_MAX_REPLICAS
if not job_config.auto_scaling:
job_config.auto_scaling = settings.RAY_CLUSTER_WORKER_AUTO_SCALING
if not job_config.python_version:
job_config.python_version = settings.RAY_PYTHON_VERSION

py_version = job_config.python_version
node_image = (
Expand Down
2 changes: 2 additions & 0 deletions gateway/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Meta:
"min_workers",
"max_workers",
"auto_scaling",
"python_version",
]

workers = serializers.IntegerField(
Expand All @@ -43,6 +44,7 @@ class Meta:
auto_scaling = serializers.BooleanField(
default=False, required=False, allow_null=True
)
python_version = serializers.CharField(required=False, allow_null=True)


class ProgramSerializer(serializers.ModelSerializer):
Expand Down

0 comments on commit b07ced0

Please sign in to comment.