本文整理了Java中water.Job.isCrashed()
方法的一些代码示例,展示了Job.isCrashed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Job.isCrashed()
方法的具体详情如下:
包路径:water.Job
类名称:Job
方法名:isCrashed
[英]Returns true if the job was terminated by unexpected exception.
[中]如果作业因意外异常而终止,则返回true。
代码示例来源:origin: h2oai/h2o-2
@Override protected Response serve() {
Job jjob = null;
if( job_key != null )
jjob = Job.findJob(job_key);
if( jjob != null && jjob.isCancelledOrCrashed()) // Handle cancelled job
return Response.error(jjob.isCrashed() ? jjob.exception : "Job was cancelled by user!" );
if( jjob == null || jjob.isDone() ) // Handle done job
return jobDone(destination_key);
return jobInProgress(jjob, destination_key);
}
代码示例来源:origin: h2oai/h2o-3
if (subJob.isCrashed()) {
userFeedback.info(stage, name + " failed: " + subJob.ex().toString());
} else if (subJob.get() == null) {
if (subJob.isCrashed()) {
userFeedback.info(stage, name + " failed: " + subJob.ex().toString());
} else if (subJob.get() == null) {
代码示例来源:origin: h2oai/h2o-3
Assert.assertTrue(dl._output._job.isCrashed());
} finally {
if (tfr != null) tfr.delete();
代码示例来源:origin: h2oai/h2o-3
model1 = DKV.getGet(dl.dest());
if (model1 != null)
Assert.assertTrue(model1._output._job.isCrashed());
throw t;
Assert.assertFalse(model1._output._job.isCrashed());
model2 = DKV.getGet(dl.dest());
if (model2 != null)
Assert.assertTrue(model2._output._job.isCrashed());
throw t;
代码示例来源:origin: h2oai/h2o-3
assertTrue(dl._output._job.isCrashed());
} finally {
if (tfr != null) tfr.delete();
代码示例来源:origin: ai.h2o/h2o-automl
if (subJob.isCrashed()) {
userFeedback.info(stage, name + " failed: " + subJob.ex().toString());
} else if (subJob.get() == null) {
if (subJob.isCrashed()) {
userFeedback.info(stage, name + " failed: " + subJob.ex().toString());
} else if (subJob.get() == null) {
内容来源于网络,如有侵权,请联系作者删除!