Skip to content

Commit f374715

Browse files
Fix spawning datasources in oneshot mode (#305)
1 parent efd7c74 commit f374715

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Fixed
66

77
* cli: Fixed `schema init` command crash with SQLite databases.
8+
* index: Fixed spawning datasources in oneshot mode.
89

910
## 5.0.0 - 2022-04-08
1011

src/dipdup/dipdup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def _run(self, spawn_datasources_event: Event, start_scheduler_event: Even
9797

9898
while True:
9999
if not spawn_datasources_event.is_set():
100-
if self._every_index_is(IndexStatus.REALTIME) or early_realtime:
100+
if (self._every_index_is(IndexStatus.REALTIME) or early_realtime) and not self._ctx.config.oneshot:
101101
spawn_datasources_event.set()
102102

103103
if spawn_datasources_event.is_set():

0 commit comments

Comments
 (0)