-
Notifications
You must be signed in to change notification settings - Fork 141
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
Week Two Assignment #37
base: master
Are you sure you want to change the base?
Conversation
|
||
|
||
local = { | ||
"ops": {"get_s3_data": {"config": {"s3_key": "prefix/stock.csv"}}}, | ||
"ops": {"get_s3_data": {"config": {"s3_key": "week_2/data/stock.csv"}}}, |
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.
Was this something you needed to change to get things working? I was slightly confused by the prefix
path but for some reason I never needed to change it.
@op( | ||
ins={"highest_stock": In(dagster_type=Aggregation)}, | ||
required_resource_keys={"redis"}, | ||
description="Store the highest value stock." |
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 included an out
attribute of Nothing
here. No idea if it's better to be explicit or not.
out=Out(dagster_type=Nothing),
def s3_resource(): | ||
@resource( | ||
config_schema={ | ||
"bucket": str, |
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.
Also possible to use a Field()
instead of bare types. Can be useful if you ever need to set a default or description.
No description provided.