Skip to content

Commit a9b7cb1

Browse files
Fix processing reindexing reason saved in the database (#192)
* Fix processing reindexing reason saved in the database * lint
1 parent 40fe460 commit a9b7cb1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Please use [this](https://docs.gitlab.com/ee/development/changelog.html) document as guidelines to keep a changelog.
44

5+
## [unreleased]
6+
7+
## Fixed
8+
9+
* index: Fixed processing reindexing reason saved in the database.
10+
511
## 4.0.0 - 2021-12-24
612

713
This release contains no changes except for the version number.

src/dipdup/dipdup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
from dipdup.enums import ReindexingReason
4545
from dipdup.exceptions import ConfigInitializationException
4646
from dipdup.exceptions import DipDupException
47-
from dipdup.exceptions import ReindexingRequiredError
4847
from dipdup.hasura import HasuraGateway
4948
from dipdup.index import BigMapIndex
5049
from dipdup.index import HeadIndex
@@ -446,7 +445,7 @@ async def _initialize_schema(self) -> None:
446445
await self._ctx.reindex(ReindexingReason.SCHEMA_HASH_MISMATCH)
447446

448447
elif self._schema.reindex:
449-
raise ReindexingRequiredError(self._schema.reindex)
448+
await self._ctx.reindex(self._schema.reindex)
450449

451450
await self._ctx.fire_hook('on_restart')
452451

0 commit comments

Comments
 (0)