How to obtain run_id without using dbutils in python?

RaymondLC92
New Contributor II

We would like to be able to get the run_id in a job run and we have the unfortunate restriction that we cannot use dbutils, is there a way to get it in python?

I know for Job ID it's possible to retrieve it from the environment variables.