I have a long-running job, and if certain conditions are met, I would like to kill the job. This is traditionally done in python like:
if some_condition:
exit('job failed!)
This works on traditional, command-line running of a python script. However, for reasons beyond my understanding, Databricks doesn't kill the script with exit.
How can I program a Databricks python script to automatically stop executing if a certain condition is met?