-
-
Notifications
You must be signed in to change notification settings - Fork 57
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(subscriptions): Executor uses the ExecuteQuery strategy #2280
Conversation
Integrates the ExecuteQuery strategy in the subscriptions executor. Note that currently the `executor_sample_rate` option is not set so all scheduled subscriptions will be filtered at the start of the pipeline, and even their offsets will not be committed. This is to avoid running duplicate queries on ClickHouse until we are ready to begin testing.
Codecov Report
@@ Coverage Diff @@
## master #2280 +/- ##
==========================================
- Coverage 93.20% 93.06% -0.14%
==========================================
Files 551 553 +2
Lines 24989 25245 +256
==========================================
+ Hits 23290 23494 +204
- Misses 1699 1751 +52
Continue to review full report at Codecov.
|
def create( | ||
self, commit: Callable[[Mapping[Partition, Position]], None] | ||
) -> ProcessingStrategy[KafkaPayload]: | ||
return Noop(commit) | ||
executor = ThreadPoolExecutor(self.__max_concurrent_queries) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do not need to create a threadpool each time you create the step, which can happen often. Please keep it static.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this line out of the processing strategy factory and passing it in now so it doesn't get recreated on partition assignment, etc
Integrates the ExecuteQuery strategy in the subscriptions executor. Note that currently the `executor_sample_rate` option is not set so all scheduled subscriptions will be filtered at the start of the pipeline, and even their offsets will not be committed. This is to avoid running duplicate queries on ClickHouse until we are ready to begin testing.
Integrates the ExecuteQuery strategy in the subscriptions executor.
Note that currently the
executor_sample_rate
option is not setso all scheduled subscriptions will be filtered at the start of the
pipeline, and even their offsets will not be committed.
This is to avoid running duplicate queries on ClickHouse until we
are ready to begin testing.