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 3 Project Submission #53

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Week 3 Project Submission #53

wants to merge 16 commits into from

Conversation

ianyoung
Copy link

@ianyoung ianyoung commented Sep 4, 2022

Summary of changes:

  • Copy ops and graph from week_2
  • Add schedules for *_week_3_pipeline
  • Add docker_week_3_sensor
  • Add op retry policy to docker_week_3_pipeline job
  • Add static partitioned config for docker

Confirmed all tests passing.

corise-dagster-week3-tests

Copy link

@yjw868 yjw868 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ianyoung great work, well done!

yield RunRequest(
run_key=new_file,
run_config={
"resources": {**docker["resources"]},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ianyoung I did exactly the same as you:) However, the code can be simplified as
{**docker, "ops": {"get_s3_data": {"config": {"s3_key": new_file}}},
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point @yjw868. Now updated. Thanks!

We can copy the full config settings and override only the relevant parts.
Copy link

@OrenLederman OrenLederman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, expect for the second sensors (See comment) 👍


docker_week_3_schedule = None # Add your schedule
# Schedule for docker: Start of every hour
docker_week_3_schedule = ScheduleDefinition(job=docker_week_3_pipeline, cron_schedule="0 * * * *")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code passes the tests, but I believe this definition is incorrect. Try to turn o this schedule in Dagit, and it will compain about incorrect configuration. See this discussion - https://data-orchestration.slack.com/archives/C03SB6TAXQV/p1661960430498179

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

3 participants