Driver sigterm on Databricks?

You launched a job and encountered a sigterm error on the driver, like this one?

com.databricks.backend.common.rpc.DriverStoppedException: Driver down cause: driver state change (exit code: 143)

Probably you called a SparkSession.stop() somewhere in your code and Databricks hasn't had time to turn the compute off properly. You will find some extra hints in the logs, probably things like:

Py4JError: org.apache.spark.sql.SparkSession does not exist in the JVM -- org.apache.spark.SparkException: Trying to putInheritedProperty with no active spark context
	at org.apache.spark.credentials.CredentialContext$.$anonfun$putInheritedProperty$2(CredentialContext.scala:188)
	at scala.Option.getOrElse(Option.scala:189)
	at org.apache.spark.credentials.CredentialContext$.$anonfun$putInheritedProperty$1(CredentialContext.scala:188)
	at scala.Option.getOrElse(Option.scala:189)

In that case remove the stop as it's not required and already managed by the underlying compute.

That said, it's only one of possible causes and always double check it with the metrics and logs.