Accessing model execution variables: current runtime & predicted sampling time

Hello,

I’m optimizing my model and was performing tests on different scenarios.
I’m doing this programaticaly and for that, these scenarios are defined with hyperparameters in a wrapper function.

To mitigate the fact that some models are misspecified, I want to raise an exception if the current runtime exceeds a constant value and/or the expected runtime is greater than a constant value.

To be even clearer, I would like to access the highlighted variables that feed the progress bar below:

Do you know how to access these values (or a better approach for what I intend to do)?
I browsed pymc3’s source, but only superficially.