Skip to content

Commit

Permalink
fix typos in the low priority notebook. (#2246)
Browse files Browse the repository at this point in the history
used local scoped variable within the cluster creation function.
  • Loading branch information
rtanase committed May 3, 2023
1 parent 15597ad commit be7c653
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,14 @@
"def create_compute_cluster(workspace, name, vm_priority=\"dedicated\"):\n",
" \"\"\"Create a compute cluster.\"\"\"\n",
" try:\n",
" compute_target = ComputeTarget(workspace=ws, name=name)\n",
" compute_target = ComputeTarget(workspace=workspace, name=name)\n",
" print(f\"Found existing cluster for {name} -- using it\")\n",
" return compute_target\n",
" except ComputeTargetException:\n",
" compute_config = AmlCompute.provisioning_configuration(\n",
" vm_size=\"Standard_NC6\", max_nodes=4, vm_priority=vm_priority\n",
" )\n",
" compute_target = ComputeTarget.create(ws, name, compute_config)\n",
" compute_target = ComputeTarget.create(workspace, name, compute_config)\n",
" print(f\"Creating cluster {name}\")\n",
" compute_target.wait_for_completion(show_output=True)\n",
" return compute_target"
Expand Down

0 comments on commit be7c653

Please sign in to comment.