Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kgodlewski committed Jan 13, 2025
1 parent 7aa5f24 commit e9855e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/neptune_scale/api/attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def log(
elif isinstance(timestamp, (float, int)):
timestamp = datetime.fromtimestamp(timestamp)

# MetadataSplitter is an iterator, so gather everything into a list instead of iterating over
# it in the critical section, to avoid holding the lock for too long.
# TODO: Move splitting into the worker process. Here we should just send messages as they are.
chunks = list(
MetadataSplitter(
Expand Down

0 comments on commit e9855e1

Please sign in to comment.