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

Week Two Assignment #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Week Two Assignment #37

wants to merge 1 commit into from

Conversation

mer-alder
Copy link

No description provided.



local = {
"ops": {"get_s3_data": {"config": {"s3_key": "prefix/stock.csv"}}},
"ops": {"get_s3_data": {"config": {"s3_key": "week_2/data/stock.csv"}}},
Copy link

@ianyoung ianyoung Aug 29, 2022

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."

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,

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.

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.

None yet

2 participants