Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 778823a

Browse files
set up and test run extract for contest ranking pipeline
1 parent acd0117 commit 778823a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

‎dags/contest_ranking_dag.py‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # Fix ModuleNotFoundError
99

10-
from operators.contest_ranking_ops import extract_contest_ranking
10+
from operators.contest_ranking_ops import extract_contest_ranking, transform_contest_ranking
1111

1212
default_args = {
1313
"owner": "minhduc29",
@@ -25,8 +25,16 @@
2525

2626
# Extract raw data directly from API and store in local/cloud storage
2727
extract = PythonOperator(
28-
task_id=f"extract_contest_ranking",
28+
task_id="extract_contest_ranking",
2929
python_callable=extract_contest_ranking,
3030
op_args=[4],
3131
dag=dag
3232
)
33+
34+
transform = PythonOperator(
35+
task_id="transform_contest_ranking",
36+
python_callable=transform_contest_ranking,
37+
dag=dag
38+
)
39+
40+
extract >> transform

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /