Skip to content

Commit 01fc7dc

Browse files
committed
🩹 (manager) Make sure to instantiate a new MemoryStore for every cycle
1 parent acbb9b9 commit 01fc7dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ingestors/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from followthemoney import model
1111
from followthemoney.helpers import entity_filename
1212
from followthemoney.namespace import Namespace
13-
from ftmq.store import get_store
1413
from ftmq.store.fragments import get_fragments
1514
from ftmq.store.fragments.utils import safe_fragment
15+
from ftmq.store.memory import MemoryStore
1616
from normality import stringify
1717
from openaleph_procrastinate import defer
1818
from openaleph_procrastinate.app import App
@@ -107,7 +107,7 @@ def __init__(self, app: App, dataset: str, context: dict[str, Any]):
107107
self.context = context
108108
self.ns = Namespace(self.context["namespace"])
109109
self.work_path = ensure_path(mkdtemp(prefix="ingestor-"))
110-
self.emitted = get_store("memory://")
110+
self.emitted = MemoryStore()
111111
self.archive = get_archive()
112112

113113
def make_entity(self, schema, parent=None):

0 commit comments

Comments
 (0)