s_logger.error("Error creating next view cycle for " + getWorkerContext(), e);
return;
}
try {
try {
final SingleComputationCycle singleComputationCycle = cycleReference.get();
final Map<String, Collection<ComputationTargetSpecification>> configToComputationTargets = new HashMap<>();
final Map<String, Map<ValueSpecification, Set<ValueRequirement>>> configToTerminalOutputs = new HashMap<>();
final MarketDataSnapshot marketDataSnapshot = snapshotManager.getSnapshot();
for (DependencyGraphExplorer graphExp : compiledViewDefinition.getDependencyGraphExplorers()) {
final DependencyGraph graph = graphExp.getWholeGraph();
configToComputationTargets.put(graph.getCalculationConfigurationName(), graph.getAllComputationTargets());
configToTerminalOutputs.put(graph.getCalculationConfigurationName(), graph.getTerminalOutputs());
}
if (isTerminated()) {
return;
}
cycleStarted(new DefaultViewCycleMetadata(
cycleReference.get().getUniqueId(),
marketDataSnapshot.getUniqueId(),
compiledViewDefinition.getViewDefinition().getUniqueId(),
versionCorrection,
executionOptions.getValuationTime(),
singleComputationCycle.getAllCalculationConfigurationNames(),
configToComputationTargets,
configToTerminalOutputs));
if (isTerminated()) {
return;
}