Skip to content

Conversation

@yotamloe
Copy link
Contributor

@yotamloe yotamloe commented Jan 25, 2026

Description

  • logzio/sender.py:
    • Added Lock import and _flush_lock instance variable
    • Modified _flush_queue() to use lock for thread-safe flushing
    • Modified _get_messages_up_to_max_allowed_size() to use non-blocking queue.get(block=False)
  • tests/test_thread_safety.py: Added comprehensive tests for thread safety

What type of PR is this?

(check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build / CI
  • ⏩ Revert

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help from somebody

@yotamloe yotamloe requested a review from a team January 25, 2026 11:58
Comment on lines +11 to +12
maintainer="yotam-loewenbach",
mail="yotam.loewenbach@logz.io",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we put some logzio mail here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants