MCPcopy
hub / github.com/hyperopt/hyperopt / _write_exception_back

Method _write_exception_back

hyperopt/spark.py:421–424  ·  view source on GitHub ↗
(self, trial, e)

Source from the content-addressed store, hash-verified

419 trial["refresh_time"] = coarse_utcnow()
420
421 def _write_exception_back(self, trial, e):
422 trial["state"] = base.JOB_STATE_ERROR
423 trial["misc"]["error"] = (str(type(e)), self._get_traceback(e))
424 trial["refresh_time"] = coarse_utcnow()
425
426 @staticmethod
427 def _write_cancellation_back(trial, e):

Callers 1

_finish_trial_runMethod · 0.95

Calls 2

_get_tracebackMethod · 0.95
coarse_utcnowFunction · 0.90

Tested by

no test coverage detected