water.Job.isCrashed()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中water.Job.isCrashed()方法的一些代码示例,展示了Job.isCrashed()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Job.isCrashed()方法的具体详情如下:
包路径:water.Job
类名称:Job
方法名:isCrashed

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) {

相关文章