@@ -28,6 +28,7 @@ type Enqueuer struct {
2828 templateRepository testworkflowtemplateclient.TestWorkflowTemplateClient
2929 executionRepository testworkflow.Repository
3030 emitter * event.Emitter
31+ envID string
3132 globalTemplateName string
3233 hasInlinedGlobalTemplate bool
3334}
@@ -38,6 +39,7 @@ func NewEnqueuer(
3839 templateRepository testworkflowtemplateclient.TestWorkflowTemplateClient ,
3940 executionRepository testworkflow.Repository ,
4041 emitter * event.Emitter ,
42+ envID string ,
4143 globalTemplateName string ,
4244 hasInlinedGlobalTemplate bool ,
4345) Enqueuer {
@@ -47,6 +49,7 @@ func NewEnqueuer(
4749 templateRepository : templateRepository ,
4850 executionRepository : executionRepository ,
4951 emitter : emitter ,
52+ envID : envID ,
5053 globalTemplateName : globalTemplateName ,
5154 hasInlinedGlobalTemplate : hasInlinedGlobalTemplate ,
5255 }
@@ -394,7 +397,7 @@ func (e *Enqueuer) persistExecution(ctx context.Context, executions []*testworkf
394397// dispatchExecutionEvents dispatches events related to queueing.
395398func (e * Enqueuer ) dispatchExecutionEvents (executions []testkube.TestWorkflowExecution ) {
396399 for _ , execution := range executions {
397- e .emitter .Notify (testkube .NewEventQueueTestWorkflow (& execution ))
400+ e .emitter .Notify (testkube .NewEventQueueTestWorkflow (& execution , e . envID ))
398401 }
399402}
400403
0 commit comments