Skip to content

Commit

Permalink
fix(nats): use the executionId from the runContext for all triggers (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu authored May 20, 2023
1 parent 0739593 commit 1eef955
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/io/kestra/plugin/nats/Trigger.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,13 @@ public Optional<Execution> evaluate(ConditionContext conditionContext, TriggerCo
return Optional.empty();
}

String executionId = IdUtils.create();

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

Execution execution = Execution.builder()
.id(executionId)
.id(runContext.getTriggerExecutionId())
.namespace(context.getNamespace())
.flowId(context.getFlowId())
.flowRevision(context.getFlowRevision())
Expand Down

0 comments on commit 1eef955

Please sign in to comment.