Skip to content

Commit

Permalink
register flow part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktx committed Nov 12, 2024
1 parent 47cbd1a commit 6f31009
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions pipelines/utils/crawler_anatel/banda_larga_fixa/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
wait=filepath,
upstream_tasks=[filepath], # Fix: Wrap filepath in a list to make it iterable
)

with case(materialize_after_dump, True):
# Trigger DBT flow run
current_flow_labels = get_current_flow_labels()
Expand Down
6 changes: 3 additions & 3 deletions pipelines/utils/crawler_anatel/banda_larga_fixa/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ def treatment_municipio(table_id:str):


def get_year():
import os
lista = []
for x in os.listdir(anatel_constants.INPUT_PATH.value):
print(x)
parts = x.split("_")
if len(parts) > 3:
x = parts[3]
if len(parts) > 4:
x = parts[4]
if len(x) == 4:
lista.append(x)

Expand Down
2 changes: 1 addition & 1 deletion pipelines/utils/crawler_anatel/telefonia_movel/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@
)

flow_anatel_telefonia_movel.storage = GCS(constants.GCS_FLOWS_BUCKET.value)
flow_anatel_telefonia_movel.run_config = KubernetesRun(image=constants.DOCKER_IMAGE.value)
flow_anatel_telefonia_movel.run_config = KubernetesRun(image=constants.DOCKER_IMAGE.value)

0 comments on commit 6f31009

Please sign in to comment.