This commit is contained in:
Pablo Martin 2024-08-13 17:17:01 +02:00
parent 34496c3128
commit 74df79d380
2 changed files with 11 additions and 14 deletions

View file

@ -1,21 +1,12 @@
import datetime
import json
from psycopg2.sql import SQL
from anaxi.config import (
get_cosmos_database_config_from_file,
get_postgres_database_config_from_file,
get_stream_config_from_file,
)
from anaxi.constants import (
ASSUMED_PREHISTORICAL_DATETIME,
DESTINATION_COLUMN_NAME,
PATHS,
)
from anaxi.cosmos_tools import create_cosmos_client_from_config, get_container_client
from anaxi.cosmos_tools import create_cosmos_client_from_config
from anaxi.logging import get_anaxi_logger
from anaxi.postgres_tools import create_postgres_connection_from_config, simply_query
from anaxi.postgres_tools import simply_query
from anaxi.sync import SyncJob
logger = get_anaxi_logger(__name__)
@ -46,7 +37,7 @@ def run_postgres_healthcheck_process(postgres_database: str) -> None:
return
def run_sync_process(stream_id: str):
def run_sync_process(stream_id: str) -> None:
logger.info("Preparing sync job...")
sync_job = SyncJob(stream_id=stream_id)