AugustoElesbão
New Contributor II

@hanspetter you can get the info via the command context:

dbutils.notebook.getContext.currentRunId

Besides of that, the following methods (vals) are available in the context:

  1. jobGroup: Option[String] - unique command identifier that is injected by the driver.
  2. rootRunId: Option[RunId]
  3. tags: Map[String, String] - attribution tags injected by the webapp