Skip to content

Commit

Permalink
Merge pull request #23 from kevinsunny1996/task/add_dependency
Browse files Browse the repository at this point in the history
added dependency between parquet file clearup and update page number
  • Loading branch information
kevinsunny1996 authored May 13, 2024
2 parents e87a4f7 + f39c96d commit b750045
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dags/rawg_api_extractor_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,7 @@ def update_page_number(rawg_page_number: int) -> int:
next_page_number = int(rawg_page_number) + 1
Variable.set("api_page_number", next_page_number)

remove_extracted_api_parquet_files(rawg_landing_gcs_bucket)
update_page_number(rawg_page_number)
remove_extracted_api_parquet_files(rawg_landing_gcs_bucket) >> update_page_number(rawg_page_number)

# DAG Flow
initialize_vars_and_check_hibernation() >> extract_rawg_api_data() >> load_extracted_data_to_bq() >> post_load_cleanup()
Expand Down

0 comments on commit b750045

Please sign in to comment.