Skip to content

Commit ef2aac7

Browse files
committed
Fix syntax
1 parent 1c88052 commit ef2aac7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sync/databricks/integrations/_run_submit_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def apply_sync_gradient_cluster_recommendation(
2020
cluster_log_url: str,
2121
workspace_id: str,
2222
) -> dict:
23-
if tasks := run_submit_task.get("tasks"):
23+
tasks = run_submit_task.get("tasks")
24+
if tasks:
2425
if len(tasks) > 1:
2526
logger.error(
2627
"Unable to apply gradient configuration for run submit " "with multiple tasks."

0 commit comments

Comments
 (0)