use of io.kestra.core.models.flows.FlowSource in project kestra by kestra-io.
the class RestoreQueueService method flows.
public int flows(boolean noRecreate) {
FlowRepositoryInterface flowRepository = applicationContext.getBean(FlowRepositoryInterface.class);
List<Flow> flows = flowRepository.findAll().stream().flatMap(flow -> flowRepository.findRevisions(flow.getNamespace(), flow.getId()).stream()).filter(flow -> !(flow instanceof FlowSource)).collect(Collectors.toList());
return this.send(flows, QueueFactoryInterface.FLOW_NAMED, Flow.class, noRecreate);
}
Aggregations