/** * 记录失效转移队列. * * @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); }
/** * 将任务从运行时队列删除.. * * @param metaInfo 任务元信息 */ public void removeRunning(final TaskContext.MetaInfo metaInfo) { runningService.remove(metaInfo); }