-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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(workflow_engine): Add process_data_packets
method
#82002
Conversation
923a9fc
to
623b1e8
Compare
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
query_id = BoundedBigIntegerField() | ||
|
||
# TODO - Add a type here |
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.
Colleen creates an enum for this in #81953
**kwargs, | ||
) -> tuple[Workflow, Detector, DetectorWorkflow, DataConditionGroup]: | ||
""" | ||
Create a Worfkllow, Detector, DetectorWorkflow, and DataConditionGroup for testing. |
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.
I wouldn't normally nitpick typos like this, but since some tests are failing anyway I thought I would point out this docstring 😅
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.
lgtm, nice to bundle these together
9d3e9bf
to
ee1fbf6
Compare
623b1e8
to
b9f8d52
Compare
e958e36
to
74e70de
Compare
6e30368
to
41c64a8
Compare
74e70de
to
39105c8
Compare
def process_data_packets( | ||
data_packets: list[DataPacket], query_type: str | ||
) -> list[tuple[Detector, dict[DetectorGroupKey, DetectorEvaluationResult]]]: |
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.
Is this idea that the snuba subscription result consumer will call this with each packet?
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.
Yep! That said, it could also work as a batch processor since it takes a list of packets.
39105c8
to
1cdccbf
Compare
1cdccbf
to
881615d
Compare
881615d
to
7d88677
Compare
…ocess data sources / process detectors
d29b3ce
to
b623aa7
Compare
## Description Adding a wrapper method, `process_data_packets` to merge the process_data_sources and process_detectors. Still thinking through higher level abstractions to simplify using the workflow_engine, but this should simplify integrations a little further for now.
Description
Adding a wrapper method,
process_data_packets
to merge the process_data_sources and process_detectors.Still thinking through higher level abstractions to simplify using the workflow_engine, but this should simplify integrations a little further for now.