Skip to content

Commit

Permalink
insere upstream_task na task wait_for_flow_run
Browse files Browse the repository at this point in the history
  • Loading branch information
folhesgabriel committed Oct 4, 2023
1 parent 5dd41de commit 32c2a0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pipelines/utils/crawler_ibge_inflacao/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from pipelines.utils.tasks import (
create_table_and_upload_to_gcs,
get_current_flow_labels,
get_temporal_coverage,
rename_current_flow_run_dataset_table,
)

Expand All @@ -49,7 +48,6 @@
rename_flow_run = rename_current_flow_run_dataset_table(
prefix="Dump: ", dataset_id=dataset_id, table_id=table_id, wait=table_id
)
# USA A FUNÇAO EXTRACT_LAST_DATE ENTAO QUEBRA SE A BSE NAO EXISTIR

needs_to_update = check_for_updates(
indice=INDICE, dataset_id=dataset_id, table_id=table_id
Expand Down Expand Up @@ -92,6 +90,7 @@
stream_states=True,
stream_logs=True,
raise_final_state=True,
upstream_tasks=[wait_upload_table],
)
wait_for_materialization.max_retries = (
dump_db_constants.WAIT_FOR_MATERIALIZATION_RETRY_ATTEMPTS.value
Expand Down Expand Up @@ -182,6 +181,7 @@
stream_states=True,
stream_logs=True,
raise_final_state=True,
upstream_tasks=[wait_upload_table],
)
wait_for_materialization.max_retries = (
dump_db_constants.WAIT_FOR_MATERIALIZATION_RETRY_ATTEMPTS.value
Expand Down Expand Up @@ -272,6 +272,7 @@
stream_states=True,
stream_logs=True,
raise_final_state=True,
upstream_tasks=[wait_upload_table],
)
wait_for_materialization.max_retries = (
dump_db_constants.WAIT_FOR_MATERIALIZATION_RETRY_ATTEMPTS.value
Expand Down Expand Up @@ -364,6 +365,7 @@
stream_states=True,
stream_logs=True,
raise_final_state=True,
upstream_tasks=[wait_upload_table],
)
wait_for_materialization.max_retries = (
dump_db_constants.WAIT_FOR_MATERIALIZATION_RETRY_ATTEMPTS.value
Expand Down

0 comments on commit 32c2a0e

Please sign in to comment.