Skip to content

Commit

Permalink
Merge pull request #1144 from moonstream-to/fix-engine
Browse files Browse the repository at this point in the history
Update engine.
  • Loading branch information
Andrei-Dolgolev authored Nov 27, 2024
2 parents 79b464d + b12fb0f commit 83850d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crawlers/mooncrawl/mooncrawl/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
MOONSTREAM_POOL_SIZE,
create_moonstream_engine,
)
from moonstreamdbv3.db import MoonstreamCustomDBEngine
from moonstreamdbv3.db import DBEngine
from sqlalchemy.orm import Session, sessionmaker

from .settings import (
Expand Down
6 changes: 2 additions & 4 deletions crawlers/mooncrawl/mooncrawl/stats_worker/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from ..db import (
RO_pre_ping_query_engine,
MOONSTREAM_DB_URI_READ_ONLY,
MoonstreamCustomDBEngine,
DBEngine,
)
from ..reporter import reporter
from ..settings import (
Expand Down Expand Up @@ -85,9 +85,7 @@ def data_generate(
db_uri = get_customer_db_uri(customer_id, instance_id, "customer")
label = SEER_CRAWLER_LABEL

engine = MoonstreamCustomDBEngine(
url=db_uri, schema=MOONSTREAM_DB_V3_SCHEMA_NAME
)
engine = DBEngine(url=db_uri, schema=MOONSTREAM_DB_V3_SCHEMA_NAME).engine
else:
engine = RO_pre_ping_query_engine

Expand Down

0 comments on commit 83850d7

Please sign in to comment.