Skip to content

Commit

Permalink
set default flush interval to every event (#209)
Browse files Browse the repository at this point in the history
Co-authored-by: Dina Nimrodi <[email protected]>
  • Loading branch information
dinal and Dina Nimrodi authored Apr 28, 2021
1 parent 8ef90dd commit 178e86f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storey/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Table:
"""

def __init__(self, table_path: str, storage: Driver, partitioned_by_key: bool = True,
flush_interval_secs: Optional[int] = 300, max_updates_in_flight: int = 8):
flush_interval_secs: Optional[int] = None, max_updates_in_flight: int = 8):
self._container, self._table_path = _split_path(table_path)
self._storage = storage
self._partitioned_by_key = partitioned_by_key
Expand Down Expand Up @@ -365,6 +365,8 @@ async def _terminate(self):
await self._persist(_PersistJob(key, None, None), from_terminate=True)
await self._q.put(_termination_obj)
await self._worker_awaitable
for value in self._attrs_cache.values():
value.lock = None
self._q = None
self._flush_task = None
self._flush_exception = None
Expand Down

0 comments on commit 178e86f

Please sign in to comment.