Skip to content

Commit

Permalink
add state handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellcassius committed Sep 17, 2024
1 parent 4fbeca6 commit 62e55c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipelines/serpro/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from prefect.run_configs import KubernetesRun
from prefect.storage import GCS
from prefeitura_rio.pipelines_utils.custom import Flow
from prefeitura_rio.pipelines_utils.state_handlers import handler_inject_bd_credentials

from pipelines.constants import constants as smtr_constants
from pipelines.serpro.tasks import wait_sleeping
Expand All @@ -16,4 +17,4 @@
image=smtr_constants.DOCKER_IMAGE_FEDORA.value,
labels=[smtr_constants.RJ_SMTR_AGENT_LABEL.value],
)
flow.state_handlers = [handler_setup_serpro]
flow.state_handlers = [handler_setup_serpro, handler_inject_bd_credentials]

0 comments on commit 62e55c8

Please sign in to comment.