-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[dagster-pipes] Add key param to PipesS3MessageReader #24884
base: master
Are you sure you want to change the base?
[dagster-pipes] Add key param to PipesS3MessageReader #24884
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @danielgafni and the rest of your teammates on Graphite |
271a6b7
to
7f7242b
Compare
bdc9a6f
to
3393f77
Compare
7f7242b
to
d63500e
Compare
3393f77
to
4c3ccd7
Compare
d63500e
to
672fbd0
Compare
4c3ccd7
to
f5b8973
Compare
672fbd0
to
9d2fae3
Compare
f5b8973
to
9dd7a07
Compare
9d2fae3
to
c002962
Compare
9dd7a07
to
80c5521
Compare
b02e92d
to
2ebe652
Compare
80c5521
to
1bd1bc8
Compare
2ebe652
to
cf54202
Compare
5726e76
to
2e0b789
Compare
2e0b789
to
35bdb96
Compare
cf54202
to
c10d2ff
Compare
35bdb96
to
0ab0981
Compare
c10d2ff
to
681425a
Compare
0ab0981
to
ff84c91
Compare
I think we should spend some time discussing these options. This will be a common pattern with all Let's consider our file-based message readers:
We have 2 classes for these 2 options. I my opinion, that's fine. However, we do not follow the same naming/functionality mapping with other message readers. Consider the corresponding
The current That's why I didn't add a separate class - the logical decision would be to rename the existing So, I decided to make a parameter to switch between these 2 options instead. We should have this naming/functionality consistent across different |
735b5ac
to
9c5e211
Compare
ed5bf00
to
b620aad
Compare
9c5e211
to
e14bfec
Compare
b620aad
to
ff49809
Compare
e14bfec
to
92e3f11
Compare
ff49809
to
4c3849a
Compare
92e3f11
to
19d1a34
Compare
4c3849a
to
56c3559
Compare
19d1a34
to
d949d88
Compare
4c3849a
to
6dbd81a
Compare
d949d88
to
57055af
Compare
I agree and think you've hit on a rough area in the design of pipes. We should discuss with @schrockn. AFAICT the EMR client (the last one in the stack we aimed to merge this week) need not depend on this functionality, so please move that off of this one so we can merge it independently, then we can discuss this question of message readers dependence on a particular message writer next week. |
57055af
to
b99096f
Compare
47b81e1
to
8f170d7
Compare
b99096f
to
8699e73
Compare
8f170d7
to
fafc04b
Compare
936c9d3
to
c43b817
Compare
fafc04b
to
b9f8fc6
Compare
c43b817
to
c178540
Compare
Summary & Motivation
This PR adds
key
parameter toPipesS3MessageReader
.Previously, it could only be used when paired with
PipesS3MessageWriter
on the external process side.This change allows using
PipesS3MessageReader
in situations where we expect an external service to create an S3 object containing Pipes messages (typically by dumping stdout/stderr logs).A new
expect_s3_message_writer
parameter is introduced to distinguish between these two operational modes (defaults toTrue
).A new
key
parameter can either be passed to the constructor or set later on viaPipesSession.report_launched
hook (if not known duringMessageReader
instantiation).How I Tested These Changes
Added a unit test for the new functionality.
Changelog
Insert changelog entry or "NOCHANGELOG" here.
NEW
(added new feature or capability)