Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(server): add options for test pipeline #3161

Merged
merged 5 commits into from
Sep 15, 2023

Conversation

danielbdias
Copy link
Contributor

@danielbdias danielbdias commented Sep 15, 2023

This PR adds options to enable/disable trace fetch and trigger execution.

Changes

  • Added option for test pipeline

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@@ -47,6 +49,11 @@ func (w *traceFetcherWorker) SetOutputQueue(queue pipeline.Enqueuer[executor.Job
}

func (w *traceFetcherWorker) ProcessItem(ctx context.Context, job executor.Job) {
if !w.enabled {
w.outputQueue.Enqueue(ctx, job)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be just a skip? if we have an external queue processor that also listens for this step and then passes it to the next, the item will be duplicated in the queue

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you, changing it now.

@danielbdias danielbdias merged commit 8b0efc8 into main Sep 15, 2023
38 checks passed
@danielbdias danielbdias deleted the add/config-for-test-pipeline branch September 15, 2023 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants