Skip to content

Commit

Permalink
time sleep 1
Browse files Browse the repository at this point in the history
  • Loading branch information
maaottoni committed Oct 30, 2024
1 parent 6af200b commit cba793c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/scripts/passo_2_match_com_equipe_e_upload_turn.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@
import time
import json
from typing import List, Dict, Tuple
from src.bd import BigQueryClient
#from src.bd import BigQueryClient
from datetime import datetime
from google.cloud import bigquery

import sys
import os
sys.path.append(r"C:/impulsogov/mensageria-mvp/src")

from bd import BigQueryClient


tokens_municipios = [
{"municipio": "Paulo Ramos", "id_sus": "210810", "token": os.getenv('ENV_PAULORAMOS_MA')},
{"municipio": "Lago Verde", "id_sus": "210590", "token": os.getenv('ENV_LAGOVERDE_MA')},
Expand Down Expand Up @@ -94,9 +101,7 @@ def send_data(df, municipio_id_sus):
except Exception as e:
print(f"Erro ao atualizar perfil de {row.celular_tratado}: {e}")

time.sleep(3)


time.sleep(1)


def processo_envio_turn() -> None:
Expand Down Expand Up @@ -182,4 +187,4 @@ def processo_envio_turn() -> None:
return {
'status': 'sucesso',
'mensagem': 'Dados enviados para TurnIO.'
}
}

0 comments on commit cba793c

Please sign in to comment.