Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciacatandi committed Nov 13, 2024
1 parent 1b08960 commit 0283cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipelines/utils/gypscie/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ def timeout_flow(
sleep(30)


def monitor_flow(timeout_seconds, flow):
def monitor_flow(timeout_seconds, flow_):
"""
Tarefa de monitoramento paralela para interromper o fluxo
se o tempo total ultrapassar o limite.
Expand All @@ -873,6 +873,6 @@ def monitor_flow(timeout_seconds, flow):
f"Tempo limite de {timeout_seconds} segundos excedido. Encerrando o fluxo."
)
logger.warning(stop_message)
flow.set_reference_tasks([Failed(stop_message)]) # Define o estado de falha do fluxo
flow_.set_reference_tasks([Failed(stop_message)]) # Define o estado de falha do fluxo
return
sleep(10) # Verifica o tempo a cada 10 segundos

0 comments on commit 0283cb1

Please sign in to comment.