Esempio n. 1
0
 /**
  * 记录失效转移队列.
  *
  * @param taskContext 任务上下文
  */
 public void recordFailoverTask(final TaskContext taskContext) {
   TaskContext.MetaInfo metaInfo = taskContext.getMetaInfo();
   Optional<CloudJobConfiguration> jobConfig = configService.load(metaInfo.getJobName());
   if (jobConfig.isPresent() && jobConfig.get().getTypeConfig().getCoreConfig().isFailover()) {
     failoverService.add(taskContext);
   }
   runningService.remove(metaInfo);
 }
Esempio n. 2
0
 /**
  * 将任务从运行时队列删除..
  *
  * @param metaInfo 任务元信息
  */
 public void removeRunning(final TaskContext.MetaInfo metaInfo) {
   runningService.remove(metaInfo);
 }