Shutdown Cluster in script if there is any failure

sahesh1320
New Contributor

I am working on incremental load from sql server to Delta lake tables stored in ADLS gen2. DUring the script i need to qrite a logic to

  • Shut down the DB cluster on failure (there needs to be logging added to ensure that shutdown happens promptly to prevent guardrail violations). 

What is the optimal way to achieve this?