Search in sources :

Example 1 with TriggerRepositoryInterface

use of io.kestra.core.repositories.TriggerRepositoryInterface in project kestra by kestra-io.

the class RestoreQueueService method triggers.

public int triggers(boolean noRecreate) {
    TriggerRepositoryInterface triggerRepository = applicationContext.getBean(TriggerRepositoryInterface.class);
    List<Trigger> triggers = new ArrayList<>(triggerRepository.findAll());
    return this.send(triggers, QueueFactoryInterface.TRIGGER_NAMED, Trigger.class, noRecreate);
}
Also used : TriggerRepositoryInterface(io.kestra.core.repositories.TriggerRepositoryInterface) Trigger(io.kestra.core.models.triggers.Trigger) ArrayList(java.util.ArrayList)

Aggregations

Trigger (io.kestra.core.models.triggers.Trigger)1 TriggerRepositoryInterface (io.kestra.core.repositories.TriggerRepositoryInterface)1 ArrayList (java.util.ArrayList)1