MCPcopy
hub / github.com/hyperopt/hyperopt / _write_cancellation_back

Method _write_cancellation_back

hyperopt/spark.py:427–430  ·  view source on GitHub ↗
(trial, e)

Source from the content-addressed store, hash-verified

425
426 @staticmethod
427 def _write_cancellation_back(trial, e):
428 trial["state"] = base.JOB_STATE_CANCEL
429 trial["misc"]["error"] = (str(type(e)), str(e))
430 trial["refresh_time"] = coarse_utcnow()
431
432 def _run_trial_async(self, trial):
433 def finish_trial_run(result_or_e):

Callers 1

_finish_trial_runMethod · 0.95

Calls 1

coarse_utcnowFunction · 0.90

Tested by

no test coverage detected