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

Update notice_fetch_for_date_range_orchestrator.py #305

Merged
merged 2 commits into from
Oct 12, 2022
Merged
Changes from all commits
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
3 changes: 2 additions & 1 deletion dags/notice_fetch_for_date_range_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ def trigger_notice_by_date_for_each_date_in_range():
context: Any = get_current_context()
start_date = get_dag_param(key=START_DATE_KEY, raise_error=True)
end_date = get_dag_param(key=END_DATE_KEY, raise_error=True)
trigger_complete_workflow = get_dag_param(key=TRIGGER_COMPLETE_WORKFLOW_DAG_KEY, default_value=False)
date_wildcards = generate_wildcards_foreach_day_in_range(start_date, end_date)
for date_wildcard in date_wildcards:
TriggerDagRunOperator(
task_id=f'trigger_notice_fetch_by_date_workflow_dag_{date_wildcard[:-1]}',
trigger_dag_id="notice_fetch_by_date_workflow",
conf={WILD_CARD_DAG_KEY: date_wildcard,
TRIGGER_COMPLETE_WORKFLOW_DAG_KEY: False
TRIGGER_COMPLETE_WORKFLOW_DAG_KEY: trigger_complete_workflow,
}
).execute(context=context)

Expand Down