Skip to content

Commit

Permalink
feat(core): add labels to triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Mar 22, 2024
1 parent e8d2e46 commit 04d8772
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/main/java/io/kestra/plugin/redis/TriggerList.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import io.kestra.core.models.executions.Execution;
import io.kestra.core.models.executions.ExecutionTrigger;
import io.kestra.core.models.flows.State;
import io.kestra.core.models.triggers.AbstractTrigger;
import io.kestra.core.models.triggers.PollingTriggerInterface;
import io.kestra.core.models.triggers.TriggerContext;
import io.kestra.core.models.triggers.TriggerOutput;
import io.kestra.core.models.triggers.*;
import io.kestra.core.runners.RunContext;
import io.kestra.plugin.redis.models.SerdeType;
import io.swagger.v3.oas.annotations.media.Schema;
Expand Down Expand Up @@ -89,19 +86,7 @@ public Optional<Execution> evaluate(ConditionContext conditionContext, TriggerCo
return Optional.empty();
}

ExecutionTrigger executionTrigger = ExecutionTrigger.of(
this,
run
);

Execution execution = Execution.builder()
.id(runContext.getTriggerExecutionId())
.namespace(context.getNamespace())
.flowId(context.getFlowId())
.flowRevision(context.getFlowRevision())
.state(new State())
.trigger(executionTrigger)
.build();
Execution execution = TriggerService.generateExecution(this, conditionContext, context, run);

return Optional.of(execution);
}
Expand Down

0 comments on commit 04d8772

Please sign in to comment.