Skip to content

Commit ca160e5

Browse files
Skip non-pydantic classes while processing bigmaps (#10)
* Skip non-pydantic classes while processing bigmaps * Switch aiosignalrcore repo * Skip backtracked operations * Fix dependencies * Include only applied transactions * Skip schema hash verification * Do not start WS connection before sync * Do not set sync event too early * Do not set sync event too early * Fix test
1 parent 8f286b6 commit ca160e5

File tree

7 files changed

+91
-102
lines changed

7 files changed

+91
-102
lines changed
26.8 KB
Binary file not shown.

poetry.lock

Lines changed: 61 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ aiomysql = "^0.0.21"
2727
asyncpg = "^0.22.0"
2828
datamodel-code-generator = "^0.10.0"
2929
"ruamel.yaml" = "^0.17.2"
30-
signalrcore = {git = "https://github.com/dipdup-net/signalrcore", rev = "async"}
3130
tortoise-orm = "^0.17.1"
3231
websockets = "^8.1"
3332
pydantic = "^1.8.1"
33+
aiosignalrcore = {path = "aiosignalrcore-0.0.0-py3-none-any.whl"}
3434

3535
[tool.poetry.dev-dependencies]
3636
black = "^20.8b1"

src/dipdup/cli.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ async def run(ctx) -> None:
9393
schema_state = State(index_type=IndexType.schema, index_name=connection_name, hash=schema_hash)
9494
await schema_state.save()
9595
elif schema_state.hash != schema_hash:
96-
_logger.warning('Schema hash mismatch, reindexing')
97-
await Tortoise._drop_databases()
98-
os.execl(sys.executable, sys.executable, *sys.argv)
96+
pass
97+
# FIXME: Hash mismatch every time
98+
# _logger.warning('Schema hash mismatch, consider reindexing')
99+
# await Tortoise._drop_databases()
100+
# os.execl(sys.executable, sys.executable, *sys.argv)
99101

100102
await config.initialize()
101103

0 commit comments

Comments
 (0)