Skip to content

Commit a4c00b6

Browse files
authored
fix for name getting lowered case for standalone jobs (#35844)
* fixing sweep job service response parsing issue * fixing sweep job service response parsing issue * raising a work around for cmd job and spark job name lowering case * fixing black issue * fixing serialization issue in sweep job * include black fix * found and fix the issue in compute validation * fixing a corrupt wokspace arm template * fix for job lower case
1 parent d357e49 commit a4c00b6

File tree

1 file changed

+4
-0
lines changed
  • sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job

1 file changed

+4
-0
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/job.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,13 @@ def _from_rest_object( # pylint: disable=too-many-return-statements
306306
return ImportJob._load_from_rest(obj)
307307

308308
res_command: Job = Command._load_from_rest_job(obj)
309+
if hasattr(obj, "name"):
310+
res_command._name = obj.name # type: ignore[attr-defined]
309311
return res_command
310312
if obj.properties.job_type == RestJobType.SPARK:
311313
res_spark: Job = Spark._load_from_rest_job(obj)
314+
if hasattr(obj, "name"):
315+
res_spark._name = obj.name # type: ignore[attr-defined]
312316
return res_spark
313317
if obj.properties.job_type == RestJobType.SWEEP:
314318
return SweepJob._load_from_rest(obj)

0 commit comments

Comments
 (0)