Skip to content

Commit

Permalink
chore: add funcionarios_ativos saude to materialization
Browse files Browse the repository at this point in the history
  • Loading branch information
d116626 committed Oct 4, 2024
1 parent 932d170 commit 9cfedac
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pipelines/ergon/materializa_funcionarios_saude/flows.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
DBT-related flows for EGPWeb Dashboard de Metas
Materialize Active SMS Employees from Ergon
"""

from copy import deepcopy
Expand Down
24 changes: 13 additions & 11 deletions pipelines/ergon/materializa_funcionarios_saude/schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@

from pipelines.constants import constants

smfp_funcionarios_saude_clocks = IntervalClock(
interval=timedelta(days=1),
start_date=datetime(2021, 11, 23, 14, 0, tzinfo=pytz.timezone("America/Sao_Paulo")),
labels=[
constants.RJ_SMFP_AGENT_LABEL.value,
],
parameter_defaults={
"dataset_id": "recursos_humanos_ergon_saude",
"table_id": "funcionarios_ativos",
},
)
smfp_funcionarios_saude_clocks = [
IntervalClock(
interval=timedelta(days=1),
start_date=datetime(2021, 11, 23, 14, 0, tzinfo=pytz.timezone("America/Sao_Paulo")),
labels=[
constants.RJ_SMFP_AGENT_LABEL.value,
],
parameter_defaults={
"dataset_id": "recursos_humanos_ergon_saude",
"table_id": "funcionarios_ativos",
},
)
]
smfp_funcionarios_saude_daily_update_schedule = Schedule(
clocks=untuple(smfp_funcionarios_saude_clocks)
)
2 changes: 1 addition & 1 deletion pipelines/templates/run_dbt_model/flows.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
MATERIALIZA MODELOS DO DBT.......
MATERIALIZA MODELOS DO DBT.........
"""

from copy import deepcopy
Expand Down

0 comments on commit 9cfedac

Please sign in to comment.