Skip to content

Commit

Permalink
ativa o schedule do flow de captura do gtfs
Browse files Browse the repository at this point in the history
  • Loading branch information
vtr363 committed Jan 3, 2025
1 parent 222e3bf commit bb400dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 8 additions & 0 deletions pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog - gtfs

## [1.2.0] - 2025-01-03

### Adicionado
- Adicionado schedule de 5 minutis do flow de captura do gtfs (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/)

### Removido
- Removido o teste de quantidade de abas na planilha da Ordem de Serviço (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/)

## [1.1.9] - 2025-01-02

### Alterado
Expand Down
4 changes: 2 additions & 2 deletions pipelines/migration/br_rj_riodejaneiro_gtfs/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
upload_staging_data_to_gcs,
)

# from pipelines.schedules import every_5_minutes
from pipelines.schedules import every_5_minutes
from pipelines.tasks import (
check_fail,
get_scheduled_timestamp,
Expand Down Expand Up @@ -293,7 +293,7 @@
handler_initialize_sentry,
handler_skip_if_running,
]
# gtfs_captura_nova.schedule = every_5_minutes
gtfs_captura_nova.schedule = every_5_minutes


# with Flow(
Expand Down
3 changes: 0 additions & 3 deletions pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,6 @@ def processa_ordem_servico(
None
"""

if len(sheetnames) != 3 and regular_sheet_index is None:
raise Exception("More than 3 tabs in the file. Please specify the regular sheet index.")

if regular_sheet_index is None:
regular_sheet_index = next(
(i for i, name in enumerate(sheetnames) if "ANEXO I" in name), None
Expand Down

0 comments on commit bb400dc

Please sign in to comment.