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 4 Project Submission #66

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix schedule for docker so that it works with the static partition
  • Loading branch information
ianyoung committed Sep 11, 2022
commit a8c4b3533cd0943cd1b63f81d1d0d23df39a4d15
11 changes: 10 additions & 1 deletion week_3/project/week_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,16 @@ def docker_config(partition_key: str):
local_week_3_schedule = ScheduleDefinition(job=local_week_3_pipeline, cron_schedule="*/15 * * * *")

# Schedule for docker: Start of every hour
docker_week_3_schedule = ScheduleDefinition(job=docker_week_3_pipeline, cron_schedule="0 * * * *")
@schedule(
cron_schedule="0 * * * *",
job=docker_week_3_pipeline,
tags={"kind": "schedule"},
description="Run scheduled for the start of every hour"
)
def docker_week_3_schedule():
for partition_key in partition_keys:
request = docker_week_3_pipeline.run_request_for_partition(partition_key=partition_key, run_key=partition_key)
yield request


@sensor(
Expand Down